CopperLicht API Documentation
Class CL3D.MeshBuffer
A buffer containing a set of geometry with one material.
Class Overview
CL3D.MeshBuffer()
A buffer containing a set of geometry with one material, usually part of a Mesh.
Field Attributes | Field Name and Description |
---|---|
Storing if the mesh buffers vertices binormals if available.
|
|
Axis aligned bounding box enclosing the geometry in this mesh buffer
|
|
Array of Indices into the Vertices array.
|
|
Material of the geometry, of type Material.
|
|
Object for the renderer to store renderer created arrays for rendering the geometry.
|
|
Storing if the mesh buffers vertices tangents if available.
|
|
Array of Vertices of this mesh buffer.
|
Method Attributes | Method Name and Description |
---|---|
Clones this Mesh buffer, creating a copy of it
|
|
Recalculates the bounding box
|
|
update(onlyPositionsChanged, onlyUpdateBufferIfPossible)
Needs to be called when the Vertices or Indices have been changed so that the RendererNativeArray gets recreated.
|
Field Detail
Binormals
Storing if the mesh buffers vertices binormals if available. This is only needed for normal mapped geometry, and null otherwise.
Box
Axis aligned bounding box enclosing the geometry in this mesh buffer
Indices
Array of Indices into the Vertices array. Each 3 indices in this array form a triangle to be rendered.
{Material}
Mat
Material of the geometry, of type Material.
RendererNativeArray
Object for the renderer to store renderer created arrays for rendering the geometry.
Tangents
Storing if the mesh buffers vertices tangents if available. This is only needed for normal mapped geometry, and null otherwise.
Vertices
Array of Vertices of this mesh buffer. The members of this array must all be of type Vertex3D.
Method Detail
createClone()
Clones this Mesh buffer, creating a copy of it
recalculateBoundingBox()
Recalculates the bounding box
update(onlyPositionsChanged, onlyUpdateBufferIfPossible)
Needs to be called when the Vertices or Indices have been changed so that the RendererNativeArray gets recreated.
- Parameters:
- {Boolean} onlyPositionsChanged
- set to true if only the positions changed in the mesh buffer. This will trigger a faster update then
- onlyUpdateBufferIfPossible