ConeGenerator

class cee.utils.ConeGenerator()

Helper class to tesselate a cone

Constructors

cee.utils.ConeGenerator.constructor()
ConeGenerator(): ConeGenerator

Returns: ConeGenerator

Properties

cee.utils.ConeGenerator.m_indices

inherited

m_indices: number[]
cee.utils.ConeGenerator.m_vertices

inherited

m_vertices: Vec3[]

Methods

cee.utils.ConeGenerator.fillVerticesIndices()

inherited

fillVerticesIndices(vertices: Float32Array, indices: number[]): void

Fills the members m_vertices and m_indices of this class.

Parameters

vertices: Float32Array

The vertices in the format x,y,z,x,y,z,…

indices: number[]

The indices for the vertices

Returns: void

cee.utils.ConeGenerator.generate()
generate(): void

Generate the cone

Returns: void

cee.utils.ConeGenerator.getIndices()

inherited

getIndices(): number[]

Get the indices of triangles needed to render the solid object

Returns: number[]

cee.utils.ConeGenerator.getVertices()

inherited

getVertices(): Vec3[]

Get the vertices of the solid object as Vec3

Returns: Vec3[]

cee.utils.ConeGenerator.getVerticesNumber()

inherited

getVerticesNumber(): number[]

Get the vertices of the solid object as a number array with <x,y,z,x,y,z,…>

Returns: number[]

cee.utils.ConeGenerator.setOriginAndSize()
setOriginAndSize(origin: Vec3, bottomRadius: number, height: number): void

Specify the cone by giving origin (center of bottom circle) and the bottom radius + height

Parameters

origin: Vec3

bottomRadius: number

height: number

Returns: void