Advanced
Options to be applied to plane geometry
Optional
width: numberOptional
height: numberOptional
verticesX: numberOptional
verticesY: numberReadonly
attributesA record of the attributes of the geometry.
Readonly
buffersThe buffers that the attributes use
The height of plane
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.
The number of vertices on x-axis
The number of vertices on y-axis
The width of plane
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.
Refreshes plane coordinates
Options to be applied to plane geometry
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
The PlaneGeometry allows you to draw a 2d plane