public final class BoxTriangulator extends Object
SolidPrimitive
.
Although, if only the fill is desired for visualization, a
TriangleMeshPrimitive
with
RenderBackThenFrontFaces
(get
) set
to true
can be used. Likewise, if only the outline is desired, a
PolylinePrimitive
can be used.Modifier and Type | Method and Description |
---|---|
static SolidTriangulatorResult |
compute(Cartesian size)
Computes the triangulation for a box of the specified
size , centered at the origin. |
public static final SolidTriangulatorResult compute(Cartesian size)
size
, centered at the origin.size
- The size, in meters, along each axis of the box.SolidTriangulatorResult
object representing the triangulation.ArgumentOutOfRangeException
- size
.x, size
.y, and size
.z must
all be greater than or equal to 0
.