BoxGenerator
- class cee.utils.BoxGenerator()
Helper class to tesselate a box with 6 faces
Constructors
Methods
Constructors
constructor
- cee.utils.BoxGenerator.constructor()
- Return type
cee.utils.BoxGenerator
Methods
generate
- cee.utils.BoxGenerator.generate()
Generate the box
- Return type
void
getIndices
- cee.utils.BoxGenerator.getIndices()
Get the indices of triangles needed to render the box
- Return type
[number]
getVertices
- cee.utils.BoxGenerator.getVertices()
Get the vertices of the box as Vec3
- Return type
[cee.Vec3]
getVerticesNumber
- cee.utils.BoxGenerator.getVerticesNumber()
Get the vertices of the box as a number array with <x,y,z,x,y,z,…>
- Return type
[number]
setCenterAndExtent
- cee.utils.BoxGenerator.setCenterAndExtent(center, extent)
Specify the box by providing the center of the box and the extent in x,y, and z direction.
- Arguments
center (
cee.Vec3
) –extent (
cee.Vec3
) –
- Return type
void
setOrientation
- cee.utils.BoxGenerator.setOrientation(rightDir, upDir)
Set the orientation of the box by giing the right direction (local x axis) and the up direction (local z axis).
- Arguments
rightDir (
cee.Vec3
) –upDir (
cee.Vec3
) –
- Return type
void
setOriginAndExtent
- cee.utils.BoxGenerator.setOriginAndExtent(origin, extent)
Specify the box by providing an origin (min x,y,z of the box) and the extent in x,y and z direction.
- Arguments
origin (
cee.Vec3
) –extent (
cee.Vec3
) –
- Return type
void