ConeGenerator
- class cee.utils.ConeGenerator()
 Helper class to tesselate a cone
Constructors
Properties
Constructors
constructor
- cee.utils.ConeGenerator.constructor()
 - Return type
 cee.utils.ConeGenerator
Properties
- cee.utils.ConeGenerator.m_indices
 
- cee.utils.ConeGenerator.m_vertices
 
Methods
fillVerticesIndices
- cee.utils.ConeGenerator.fillVerticesIndices(vertices, indices)
 Fills the members
m_verticesandm_indicesof 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.ConeGenerator.generate()
 Generate the cone
- Return type
 void
getIndices
- cee.utils.ConeGenerator.getIndices()
 Get the indices of triangles needed to render the solid object
- Return type
 [number]
getVertices
- cee.utils.ConeGenerator.getVertices()
 Get the vertices of the solid object as Vec3
- Return type
 [cee.Vec3]
getVerticesNumber
- cee.utils.ConeGenerator.getVerticesNumber()
 Get the vertices of the solid object as a number array with <x,y,z,x,y,z,…>
- Return type
 [number]
setOriginAndSize
- cee.utils.ConeGenerator.setOriginAndSize(origin, bottomRadius, height)
 Specify the cone by giving origin (center of bottom circle) and the bottom radius + height
- Arguments
 origin (
cee.Vec3) –bottomRadius (
number) –height (
number) –
- Return type
 void