Advanced
The options of the mesh geometry.
Readonly
attributesA record of the attributes of the geometry.
Readonly
buffersThe buffers that the attributes use
The index buffer of the geometry
the instance count of the geometry to draw
The topology of the geometry.
Readonly
uidThe unique id of the geometry.
Static
defaultReturns the bounds of the geometry.
The indices of the mesh.
The positions of the mesh.
Set the positions of the mesh. When setting the positions, its important that the uvs array is at least as long as the positions array. otherwise the geometry will not be valid.
The positions of the mesh.
The UVs of the mesh.
Set the UVs of the mesh. Its important that the uvs array you set is at least as long as the positions array. otherwise the geometry will not be valid.
The UVs of the mesh.
Adds an attribute to the geometry.
The name of the attribute to add.
The attribute option to add.
Adds an index buffer to the geometry.
The index buffer to add. Can be a Buffer, TypedArray, or an array of numbers.
destroys the geometry.
destroy the buffers associated with this geometry
Returns the requested attribute.
The name of the attribute required
Returns the requested buffer.
The name of the buffer required.
Used to figure out how many vertices there are in this geometry
the number of vertices in the geometry
A geometry used to batch multiple meshes with the same texture.