Click or drag to resize
Ab4d.SharpEngine logo

MultiMaterialModelNode.RemoveSubMesh Method

RemoveSubMesh removes the specified SubMesh.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public bool RemoveSubMesh(
	SubMesh subMeshToRemove,
	bool checkMaterials = true
)

Parameters

subMeshToRemove  SubMesh
SubMesh to remove
checkMaterials  Boolean  (Optional)
optional Boolean that specified is used materials are checked after removing the SubMesh (when true; by default). If you plan to add SubMesh back to this MultiMaterialModelNode, then set that to false.

Return Value

Boolean
true when the SubMesh was removed; false if it was not part of this MultiMaterialModelNode
See Also