ConeGenerator
- class cee.utils.ConeGenerator()
Helper class to tesselate a cone
Constructors
Constructors
constructor
- cee.utils.ConeGenerator.constructor()
- Return type
cee.utils.ConeGenerator
Methods
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 box
- Return type
[number]
getVertices
- cee.utils.ConeGenerator.getVertices()
Get the vertices as Vec3
- Return type
[cee.Vec3]
getVerticesNumber
- cee.utils.ConeGenerator.getVerticesNumber()
Get the vertices of the box 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