Click or drag to resize
Ab4d.SharpEngine logo

SubMesh Properties

The SubMesh type exposes the following members.

Properties
 NameDescription
Public propertyBackMaterialIndex 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.
Public propertyBoundingBox BoundingBox of this SubMesh. When BoundingBox.IsUndefined is true, then BoundingBox of parent Mesh is used.
Public propertyIndexCount 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.
Public propertyMaterialIndex 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.
Public propertyName Name
Public propertyStartIndexLocation 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.
Top
See Also