CylinderGenerator

class cee.utils.CylinderGenerator()

Helper class to tesselate a cylinder with closed caps.

Useful when result values need to be mapped onto a set of 3D points defining a cylinder. See the method createCuttingSolid in the example in Examples/DemoAppUg on how to do that.

Constructors

cee.utils.CylinderGenerator.constructor()
CylinderGenerator(): CylinderGenerator

Returns: CylinderGenerator

Properties

cee.utils.CylinderGenerator.m_indices

inherited

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

inherited

m_vertices: Vec3[]

Methods

cee.utils.CylinderGenerator.configure()
configure(config: CylinderGeneratorConfig): void

Sets up the cylinder parameters.

Parameters

Returns: void

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

Generates the cylinder, using the previously provided configuration.

Returns: void

cee.utils.CylinderGenerator.getIndices()

inherited

getIndices(): number[]

Get the indices of triangles needed to render the solid object

Returns: number[]

cee.utils.CylinderGenerator.getVertices()

inherited

getVertices(): Vec3[]

Get the vertices of the solid object as Vec3

Returns: Vec3[]

cee.utils.CylinderGenerator.getVerticesNumber()

inherited

getVerticesNumber(): number[]

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

Returns: number[]