public class Triangulator extends TriangleData
| Modifier and Type | Field and Description |
|---|---|
static int[][] |
fullCubePolygon |
cubeVertexOffsets, edgeVertexes, Pwr2, triangleTable2| Constructor and Description |
|---|
Triangulator() |
| Modifier and Type | Method and 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 cell in canonical formatflags - 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- both