AbstractSolidGenerator
- class cee.utils.AbstractSolidGenerator()
Properties
Properties
- cee.utils.AbstractSolidGenerator.m_indices
- cee.utils.AbstractSolidGenerator.m_vertices
Methods
fillVerticesIndices
- cee.utils.AbstractSolidGenerator.fillVerticesIndices(vertices, indices)
Fills the members
m_vertices
andm_indices
of this class.- Arguments
vertices (
Float32Array
) – The vertices in the format x,y,z,x,y,z,…indices (
[number]
) – The indices for the vertices
- Return type
void
generate
- cee.utils.AbstractSolidGenerator.generate()
The generate method generates the object by filling
m_vertices
andm_indices
.- Return type
void
getIndices
- cee.utils.AbstractSolidGenerator.getIndices()
Get the indices of triangles needed to render the solid object
- Return type
[number]
getVertices
- cee.utils.AbstractSolidGenerator.getVertices()
Get the vertices of the solid object as Vec3
- Return type
[cee.Vec3]
getVerticesNumber
- cee.utils.AbstractSolidGenerator.getVerticesNumber()
Get the vertices of the solid object as a number array with <x,y,z,x,y,z,…>
- Return type
[number]