Model |
public static class ModelUtils
The ModelUtils type exposes the following members.
Name | Description | |
---|---|---|
ChangeBackMaterial | ChangeMaterial method changes BackMaterial (and preserves Material) on all child models of the specified groupNode. | |
ChangeMaterial(SceneNode, Material) | ChangeMaterial method changes Material (and preserves BackMaterial) on all child models of the specified groupNode. | |
ChangeMaterial(SceneNode, Material, Material) | ChangeMaterial method changes Material and BackMaterial on all child models of the specified sceneNode (or on the specified ModelNode if it is specified as sceneNode). | |
CountAllPositions | CountAllPositions method returns the total number of all positions that are defined in ModelNodes that are children of the specified GroupNode. | |
CountAllTriangles | CountAllTriangles method returns the total number of all triangles that are defined in ModelNodes that are children of the specified GroupNode. | |
GetModelTranslationVector | GetModelTranslationVector returns a Vector3 that defines how much the model with modelBounds needs to be translated in order to be positioned at a targetPosition that represents a targetPositionType. | |
PositionAndScaleSceneNode | PositionAndScaleModel3D method translates and scales the model3D so that it is positioned according to position and positionType parameters and that it will fit into the Size3D defined by finalSize parameter. This method may call Update method in case the BoundingBox is Empty. | |
PositionSceneNode | PositionSceneNode method translates the sceneNode so that it is positioned according to position and positionType parameters. This method may call Update method in case the BoundingBox is Empty. | |
ReplaceMaterial | Goes through all models and replaces the materialToFind with newMaterial. When isBackMaterial is set to true, BackMaterial is replaced instead of Material. | |
SetMaterialOpacity | Goes through all models in the models hierarchy that start with the specified sceneNode and sets the Opacity Materials and BackMaterials to the specified opacity value. Materials need to be defined as StandardMaterial objects. |