ConeGenerator
- class cee.utils.ConeGenerator()
Helper class to tesselate a cone
Constructors
Properties
Constructors
- ConeGenerator.constructor()
- Return type:
ConeGenerator
Properties
- ConeGenerator.m_indices
- Type:
[number]
- ConeGenerator.m_vertices
- Type:
[Vec3]
Methods
fillVerticesIndices
- ConeGenerator.fillVerticesIndices(vertices, indices)
- Arguments:
vertices (
Float32Array
) – The vertices in the format x,y,z,x,y,z,…indices (
[number]
) – The indices for the vertices
Fills the members
m_vertices
andm_indices
of this class.- Return type:
void
generate
- ConeGenerator.generate()
Generate the cone
- Return type:
void
getIndices
- ConeGenerator.getIndices()
Get the indices of triangles needed to render the solid object
- Return type:
[number]
getVertices
- ConeGenerator.getVertices()
Get the vertices of the solid object as Vec3
- Return type:
[Vec3]
getVerticesNumber
- ConeGenerator.getVerticesNumber()
Get the vertices of the solid object as a number array with <x,y,z,x,y,z,…>
- Return type:
[number]
setOriginAndSize
- ConeGenerator.setOriginAndSize(origin, bottomRadius, height)
- Arguments:
origin (
Vec3
) – NonebottomRadius (
number
) – Noneheight (
number
) – None
Specify the cone by giving origin (center of bottom circle) and the bottom radius + height
- Return type:
void