BoxGenerator
-
class
cee.utils.BoxGenerator() Helper class to tesselate a box with 6 faces
Useful when result values need to be mapped onto a set of 3D points defining a box. See the method
createCuttingSolidin the example in Examples/DemoAppUg on how to do that.
Constructors
-
cee.utils.BoxGenerator.constructor() - BoxGenerator():
BoxGeneratorReturns:
BoxGenerator
Properties
-
cee.utils.BoxGenerator.m_indices inherited
m_indices: number[]
Methods
-
cee.utils.BoxGenerator.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.BoxGenerator.generate() - generate(): void
Generate the box
Returns: void
-
cee.utils.BoxGenerator.getIndices() inherited
getIndices(): number[]Get the indices of triangles needed to render the solid object
Returns: number[]
-
cee.utils.BoxGenerator.getVertices() inherited
getVertices():Vec3[]Get the vertices of the solid object as Vec3
Returns:
Vec3[]
-
cee.utils.BoxGenerator.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.BoxGenerator.setCenterAndExtent() -
Specify the box by providing the center of the box and the extent in x,y, and z direction.
Parameters
Returns: void
-
cee.utils.BoxGenerator.setNumSegments() - setNumSegments(numX: number, numY: number, numZ: number): void
Sets the number of segments of the box per axis.
Parameters
numX: number
numY: number
numZ: number
Returns: void
-
cee.utils.BoxGenerator.setOrientation() -
Set the orientation of the box by giing the right direction (local x axis) and the up direction (local z axis).
Parameters
Returns: void
-
cee.utils.BoxGenerator.setOriginAndExtent() -
Specify the box by providing an origin (min x,y,z of the box) and the extent in x,y and z direction.
Parameters
Returns: void