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
createCuttingSolidin the example in Examples/DemoAppUg on how to do that.
Constructors
-
cee.utils.CylinderGenerator.constructor() - CylinderGenerator():
CylinderGeneratorReturns:
CylinderGenerator
Properties
-
cee.utils.CylinderGenerator.m_indices inherited
m_indices: number[]
Methods
-
cee.utils.CylinderGenerator.configure() - configure(config:
CylinderGeneratorConfig): voidSets up the cylinder parameters.
Parameters
config:CylinderGeneratorConfigReturns: void
-
cee.utils.CylinderGenerator.fillVerticesIndices() inherited
fillVerticesIndices(vertices: Float32Array, indices: number[]): voidFills the members
m_verticesandm_indicesof this class.Parameters
vertices: Float32Array
The vertices in the format x,y,z,x,y,z,…indices: number[]
The indices for the verticesReturns: 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[]