Mesh
WL.Mesh
Wrapper around a native mesh data
Kind: static class of WL
new WL.Mesh(params)
Constructor
Param | Type | Description |
---|---|---|
params | Either index to wrap or set of parameters to create a new mesh | |
params.indexData | Array.<number> | Index data values |
params.indexType | MeshIndexType | Index type |
params.vertexData | Array.<number> | Interleaved vertex data values. A vertex is a set of 8 float values: - 0-3 Position - 4-7 Normal - 7-8 Texture Coordinate |
.vertexData ⇒ Float32Array
Kind: instance property of Mesh
Returns: Float32Array - Vertex data
.indexData ⇒ Uint8Array | Uint16Array | Uint32Array
Kind: instance property of Mesh
Returns: Uint8Array | Uint16Array | Uint32Array - Vertex data