class SubMesh extends BaseSubMesh
Name | Type | Description | |
---|---|---|---|
materialIndex | number | ||
verticesStart | number | ||
verticesCount | number | ||
indexStart | number | ||
indexCount | number | ||
mesh | AbstractMesh | ||
optional | renderingMesh | Mesh |
Name | Type | Description | |
---|---|---|---|
materialIndex | number | ||
verticesStart | number | ||
verticesCount | number | ||
indexStart | number | ||
indexCount | number | ||
mesh | AbstractMesh | ||
optional | renderingMesh | Mesh |
Returns the submesh BoudingInfo object.
Sets the submesh BoundingInfo.
Return the SubMesh.
Name | Type | Description | |
---|---|---|---|
boundingInfo | BoundingInfo |
Returns the mesh of the current submesh.
Returns the rendering mesh of the submesh.
Returns the submesh material.
Sets a new updated BoundingInfo object to the submesh.
Returns the SubMesh.
Updates the submesh BoundingInfo.
Returns the Submesh.
Name | Type | Description | |
---|---|---|---|
world | Matrix |
True is the submesh bounding box intersects the frustum defined by the passed array of planes.
Boolean returned.
Name | Type | Description | |
---|---|---|---|
frustumPlanes | Plane[] |
True is the submesh bounding box is completely inside the frustum defined by the passed array of planes.
Boolean returned.
Name | Type | Description | |
---|---|---|---|
frustumPlanes | Plane[] |
Renders the submesh.
Returns it.
Name | Type | Description | |
---|---|---|---|
enableAlphaMode | boolean |
Returns a new Index Buffer.
Type returned : WebGLBuffer.
Name | Type | Description | |
---|---|---|---|
indices | IndicesArray | ||
engine | Engine |
True is the passed Ray intersects the submesh bounding box.
Boolean returned.
Name | Type | Description | |
---|---|---|---|
ray | Ray |
Returns an object IntersectionInfo.
Name | Type | Description | |
---|---|---|---|
ray | Ray | ||
positions | Vector3[] | ||
indices | IndicesArray |
Creates a new Submesh from the passed Mesh.
Name | Type | Description | |
---|---|---|---|
newMesh | AbstractMesh | ||
optional | newRenderingMesh | Mesh |
Disposes the Submesh.
Returns nothing.
Creates a new Submesh from the passed parameters :
materialIndex (integer) : the index of the main mesh material.
startIndex (integer) : the index where to start the copy in the mesh indices array.
indexCount (integer) : the number of indices to copy then from the startIndex.
mesh (Mesh) : the main mesh to create the submesh from.
renderingMesh (optional Mesh) : rendering mesh.
Name | Type | Description | |
---|---|---|---|
materialIndex | number | ||
startIndex | number | ||
indexCount | number | ||
mesh | AbstractMesh |