C# Class ADNExplodeGeometry.ADN_Utility

Utility functions to do all the explode work. They are setup so that they could also be used individually called directly from MAXScript.
Show file Open project: ADN-DevTech/3dsMax-Explode-Geometry Class Usage Examples

Public Methods

Method Description
AddOsmEditMesh ( uint nodeHandle ) : int

Adds the Edit Mesh modifier to the provided node (by handle).

AddOsmModifier ( uint nodeHandle, IClass_ID cid ) : int

Adds an object space modifier to provided node (by handle).

AddOsmShell ( uint nodeHandle, float shellAmount ) : int

Adds the Shell modifier to the provided node (by handle).

ClearProgressControl ( ExplodeGeomUserControl1 ctrlProgress ) : void

Cleanup progress control

ConvertToPolygonFaces ( uint nodeHandle, bool convertToPoly = true, bool addShell = true, float shell = 0.1f, bool addEditMesh = true, bool collapseNode = true, bool centerPivot = true ) : int

This is the routine to convert the input node to polygon faces.

ConvertToTriangleFaces ( uint nodeHandle, bool convertToTri = true, bool addShell = true, float shell = 0.1f, bool addEditMesh = true, bool collapseNode = true, bool centerPivot = true ) : int

This is the routine to convert the input node to triangle faces.

GetModifier ( IINode nodeToSearch, IClass_ID cid ) : IModifier

This will return a modifier from the stack

ReflectAPI ( object obj ) : int

Input an obj to reflect

SetProgressControl ( ExplodeGeomUserControl1 ctrlProgress ) : void

Used to initialize a progress control

Method Details

AddOsmEditMesh() public static method

Adds the Edit Mesh modifier to the provided node (by handle).
public static AddOsmEditMesh ( uint nodeHandle ) : int
nodeHandle uint Input the node handle to add the modifier to.
return int

AddOsmModifier() public static method

Adds an object space modifier to provided node (by handle).
public static AddOsmModifier ( uint nodeHandle, IClass_ID cid ) : int
nodeHandle uint Input the node handle to add the modifier to.
cid IClass_ID Input the class id of the modifier add.
return int

AddOsmShell() public static method

Adds the Shell modifier to the provided node (by handle).
public static AddOsmShell ( uint nodeHandle, float shellAmount ) : int
nodeHandle uint Input the node handle to add the modifier to.
shellAmount float Input the amount of shell thickness as float.
return int

ClearProgressControl() public static method

Cleanup progress control
public static ClearProgressControl ( ExplodeGeomUserControl1 ctrlProgress ) : void
ctrlProgress ExplodeGeomUserControl1 Input the progress control to clear.
return void

ConvertToPolygonFaces() public static method

This is the routine to convert the input node to polygon faces.
public static ConvertToPolygonFaces ( uint nodeHandle, bool convertToPoly = true, bool addShell = true, float shell = 0.1f, bool addEditMesh = true, bool collapseNode = true, bool centerPivot = true ) : int
nodeHandle uint Input the node by handle.
convertToPoly bool
addShell bool Input whether to add the shell modifier when finished converting to face.
shell float Input the shell thickness amount.
addEditMesh bool Input whether to add the Edit Mesh modifier when finished converting to face.
collapseNode bool Input whether to collapse the node afterwards.
centerPivot bool Input whether to center the pivot on each new face.
return int

ConvertToTriangleFaces() public static method

This is the routine to convert the input node to triangle faces.
public static ConvertToTriangleFaces ( uint nodeHandle, bool convertToTri = true, bool addShell = true, float shell = 0.1f, bool addEditMesh = true, bool collapseNode = true, bool centerPivot = true ) : int
nodeHandle uint Input the node by handle.
convertToTri bool Input whether to convert to a tri object first.
addShell bool Input whether to add the shell modifier when finished converting to face.
shell float Input the shell thickness amount.
addEditMesh bool Input whether to add the Edit Mesh modifier when finished converting to face.
collapseNode bool Input whether to collapse the node afterwards.
centerPivot bool Input whether to center the pivot on each new face.
return int

GetModifier() public static method

This will return a modifier from the stack
public static GetModifier ( IINode nodeToSearch, IClass_ID cid ) : IModifier
nodeToSearch IINode Input node to search.
cid IClass_ID Input the class id of the modifier to find.
return IModifier

ReflectAPI() public static method

Input an obj to reflect
public static ReflectAPI ( object obj ) : int
obj object Input object to reflect.
return int

SetProgressControl() public static method

Used to initialize a progress control
public static SetProgressControl ( ExplodeGeomUserControl1 ctrlProgress ) : void
ctrlProgress ExplodeGeomUserControl1 Input the progress control to use.
return void