Sub |
The SubMesh type exposes the following members.
Name | Description | |
---|---|---|
BackMaterialIndex | Gets or sets an index of the material defined in the Materials list in the MultiMaterialModelNode. The material is used to render the back side of the triangles defined by this sub mesh. When smaller than 0, then the back front side material is not rendered for this sub mesh. | |
BoundingBox | BoundingBox of this SubMesh. When BoundingBox.IsUndefined is true, then BoundingBox of parent Mesh is used. | |
IndexCount | Number of triangle indices to render. For example, when set to 6, then 2 triangles will be rendered. This number is clamped to a value between zero and triangle indices count minus StartIndexLocation. | |
MaterialIndex | Gets or sets an index of the material defined in the Materials list in the MultiMaterialModelNode. The material is used to render the front side of the triangles defined by this sub mesh. When smaller than 0, then the front side material is not rendered for this sub mesh. | |
Name | Name | |
StartIndexLocation | Start index in IndexBuffer in the Mesh that was used to create the MultiMaterialModelNode. Note that index numbers are not triangle indexes but indices in the IndexBuffer. For example to set start location to the second triangle, set StartIndexLocation to 3 (indices from 0 to 2 define the first triangle). This number is clamped to a value between zero and triangle indices count. |