C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddOsmEditMesh() публичный статический Метод

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.
Результат int

AddOsmModifier() публичный статический Метод

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.
Результат int

AddOsmShell() публичный статический Метод

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.
Результат int

ClearProgressControl() публичный статический Метод

Cleanup progress control
public static ClearProgressControl ( ExplodeGeomUserControl1 ctrlProgress ) : void
ctrlProgress ExplodeGeomUserControl1 Input the progress control to clear.
Результат void

ConvertToPolygonFaces() публичный статический Метод

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.
Результат int

ConvertToTriangleFaces() публичный статический Метод

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.
Результат int

GetModifier() публичный статический Метод

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.
Результат IModifier

ReflectAPI() публичный статический Метод

Input an obj to reflect
public static ReflectAPI ( object obj ) : int
obj object Input object to reflect.
Результат int

SetProgressControl() публичный статический Метод

Used to initialize a progress control
public static SetProgressControl ( ExplodeGeomUserControl1 ctrlProgress ) : void
ctrlProgress ExplodeGeomUserControl1 Input the progress control to use.
Результат void