ArrowGenerator

class cee.utils.ArrowGenerator()

Helper class to tesselate an arrow

Constructors

cee.utils.ArrowGenerator.constructor()
ArrowGenerator(): ArrowGenerator

Returns: ArrowGenerator

Properties

cee.utils.ArrowGenerator.m_indices

inherited

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

inherited

m_vertices: Vec3[]

Methods

cee.utils.ArrowGenerator.configure()
configure(config: ArrowGeneratorConfig): void

Specify the arrow by providing its relative proportions.

Parameters

Returns: void

cee.utils.ArrowGenerator.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.ArrowGenerator.generate()
generate(): void

Generate the arrow

Returns: void

cee.utils.ArrowGenerator.generateReverse()
generateReverse(): void

Generate the reverse arrow, with the arrow head pointing into the origin.

Returns: void

cee.utils.ArrowGenerator.getIndices()

inherited

getIndices(): number[]

Get the indices of triangles needed to render the solid object

Returns: number[]

cee.utils.ArrowGenerator.getVertices()

inherited

getVertices(): Vec3[]

Get the vertices of the solid object as Vec3

Returns: Vec3[]

cee.utils.ArrowGenerator.getVerticesNumber()

inherited

getVerticesNumber(): number[]

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

Returns: number[]