public class Triangulator extends TriangleData
Modifier and Type | Field | Description |
---|---|---|
static int[][] |
fullCubePolygon |
cubeVertexOffsets, edgeVertexes, Pwr2, triangleTable2
Constructor | Description |
---|---|
Triangulator() |
Modifier and Type | Method | Description |
---|---|---|
javajs.util.Lst<java.lang.Object> |
intersectPlane(javajs.util.P4 plane,
javajs.util.T3[] vertices,
int flags) |
a generic cell - plane intersector -- used for finding the plane through a
not static so as to allow JavaScript to not load it as core.
|
public javajs.util.Lst<java.lang.Object> intersectPlane(javajs.util.P4 plane, javajs.util.T3[] vertices, int flags)
plane
- intersecting plane, or null for a full list of all facesvertices
- the vertices of the box or unit cellflags
- 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- both