Package-level declarations
Types
Used by the grid methods. Specifies how the UV or UVW coordinates the user function receives are scaled.
A class that provides a simple Domain Specific Language to construct and deform triangle-based 3D meshes.
Vertex writer function interface
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.
create a VertexWriter that writes into a java.nio.ByteBuffer through BufferWriter
Creates a triangle mesh builder
Writes quads to writer creating a surface that connects two displaced instances of linearContour. The positions and orientations of the two contours are defined by the frame0 and frame1 matrices.
Writes quads to writer creating a surface that connects linearContour0 with linearContour1. The positions and orientations of the two contours are defined by the frame0 and frame1 matrices.
Contour segment
Generate dodecahedron mesh
A dodecahedron mesh
Adds caps to an extruded shape
Extrudes a Shape from its triangulations
Extrudes a shape by triangulating it and creating side- and cap geometry.
Extrudes a Shape from its triangulations
Extrudes a Shape
Extrudes all shapes. Uses writer to write the resulting 3D meshes. The arguments are passed unmodified to extrudeShape.
Extrudes a list of Shape
Generate a box
Generate a shape by rotating an envelope around a vertical axis.
Generate a cylinder along the z-axis
Generate dodecahedron mesh
Generate hemisphere centered at the origin.
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.
Generate a shape by rotating an envelope around a vertical axis.
Generate sphere centered at the origin.
Generate a tapered cylinder along the z-axis
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:
Generates a finite plane with its center at (0,0,0) and spanning the xz-plane.
Creates a group. Can be used to avoid leaking mesh properties like color
and transform
into following meshes or groups.
Add a hemisphere
Creates a VertexBuffer that is suited for holding meshes. Each vertex contains:
Creates a VertexBuffer that is suited for holding meshes. Each vertex contains:
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.
Generate a finite 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.
Writes two triangles to writer representing the quad formed by four vertices.
A shape created by rotating an envelope around a vertical axis.
Returns a sphere mesh
Generate a tapered cylinder along the z-axis
Converts a Rectangle to a VertexBuffer 2D mesh matching its location and dimensions. resolution specifies the size in pixels of the triangles in the mesh.
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.
Generates a finite plane with its center at (0,0,0) and spanning the xy-plane
Writes a triangle to writer.