Creates a new submesh
defines the material index to use
defines vertex index start
defines vertices count
defines index start
defines indices count
defines the parent mesh
defines an optional rendering mesh
defines if bounding box should be created for this submesh
Returns true if this submesh covers the entire parent mesh
Gets associated effect
indices count
index start
Sets material defines used by the effect associated to the sub mesh
the material index to use
vertices count
vertex index start
Checks if the submesh intersects with a ray
defines the ray to test
true is the passed ray intersects the submesh bounding box
Creates a new submesh from the passed mesh
defines the new hosting mesh
defines an optional rendering mesh
the new submesh
Release associated resources
Returns the submesh BoudingInfo object
current bounding info (or mesh's one if the submesh is global)
Gets the class name
the string "SubMesh".
Returns the mesh of the current submesh
the parent mesh
Returns the rendering mesh of the submesh
the rendering mesh (could be different from parent mesh)
Intersects current submesh with a ray
defines the ray to test
defines mesh's positions array
defines mesh's indices array
defines if only bounding info should be used
defines an optional predicate used to select faces when a mesh intersection is detected
intersection info or null if no intersection
True is the submesh bounding box is completely inside the frustum defined by the passed array of planes
defines the frustum planes
true if the submesh is inside the frustum
True is the submesh bounding box intersects the frustum defined by the passed array of planes.
defines the frustum planes
true if the submesh is intersecting with the frustum
Sets a new updated BoundingInfo object to the submesh
defines an optional position array to use to determine the bounding info
the SubMesh
Renders the submesh
defines if alpha needs to be used
the submesh
Sets the submesh BoundingInfo
defines the new bounding info to use
the SubMesh
Sets associated effect (effect used to render this submesh)
defines the effect to associate with
defines the set of defines used to compile this effect
Updates the submesh BoundingInfo
defines the world matrix to use to update the bounding info
the submesh
Add a new submesh to a mesh
defines the material index to use
defines vertex index start
defines vertices count
defines index start
defines indices count
defines the parent mesh
defines an optional rendering mesh
defines if bounding box should be created for this submesh
the new submesh
Creates a new submesh from indices data
the index of the main mesh material
the index where to start the copy in the mesh indices array
the number of indices to copy then from the startIndex
the main mesh to create the submesh from
the optional rendering mesh
a new submesh
Generated using TypeDoc
Defines a subdivision inside a mesh