AbstractSolidGenerator

class cee.utils.AbstractSolidGenerator()

Constructors

Properties


Constructors

AbstractSolidGenerator.constructor()
Return type:

AbstractSolidGenerator

Properties

AbstractSolidGenerator.m_indices
Type:

[number]

AbstractSolidGenerator.m_vertices
Type:

[Vec3]

Methods

fillVerticesIndices

AbstractSolidGenerator.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 and m_indices of this class.

Return type:

void

generate

AbstractSolidGenerator.generate()

The generate method generates the object by filling m_vertices and m_indices.

Return type:

void

getIndices

AbstractSolidGenerator.getIndices()

Get the indices of triangles needed to render the solid object

Return type:

[number]

getVertices

AbstractSolidGenerator.getVertices()

Get the vertices of the solid object as Vec3

Return type:

[Vec3]

getVerticesNumber

AbstractSolidGenerator.getVerticesNumber()

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

Return type:

[number]