TriangleMeshBuilder
A class that provides a simple Domain Specific Language to construct and deform triangle-based 3D meshes.
Types
Functions
Generate a box of size width, height and depth. Specify the number of segments with widthSegments, heightSegments and depthSegments. Use flipNormals for an inside-out shape.
Generate dodecahedron mesh
Extrudes a Shape from its triangulations
Extrudes a Shape
Extrudes a list of Shape
Create a 2D grid of width x height 3D elements. The builder function will get called with the u
and v
coordinates of each grid cell, so you have an opportunity to add meshes to the scene using those coordinates. The coordinate values will be scaled according to coordinates. Use:
Create a 3D grid of width x height x depth 3D elements. The builder function will get called with the u
, v
and w
coordinates of each grid cell, so you have an opportunity to add meshes to the scene using those coordinates. The coordinate values will be scaled according to coordinates. Use:
Creates a group. Can be used to avoid leaking mesh properties like color
and transform
into following meshes or groups.
Add a hemisphere
Generate plane centered at center, using the right, forward and up vectors for its orientation. width and height specify the dimensions of the plane. widthSegments and heightSegments control the plane's number of segments.
Pop the active transform matrix from the transform state stack.
Push the active transform matrix on the transform state stack.
Generate a tapered cylinder along the z-axis
Returns a MPPBuffer representation of data used for rendering.
Twists a 3D mesh around an axis that starts at Vector3.ZERO and ends at axis. degreesPerUnit controls the amount of twist. start is currently unused.