public class TriangleData extends java.lang.Object implements Triangulator
Modifier and Type | Field and Description |
---|---|
protected static javajs.util.P3i[] |
cubeVertexOffsets |
protected static byte[] |
edgeVertexes |
private static int[][] |
fullCubePolygon |
protected static int[] |
Pwr2 |
protected static byte[][] |
triangleTable2 |
Constructor and Description |
---|
TriangleData() |
Modifier and Type | Method and Description |
---|---|
javajs.util.Lst<java.lang.Object> |
intersectPlane(javajs.util.P4 plane,
javajs.util.Lst<java.lang.Object> v,
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.
|
protected static final int[] Pwr2
private static final int[][] fullCubePolygon
protected static final javajs.util.P3i[] cubeVertexOffsets
protected static final byte[] edgeVertexes
protected static final byte[][] triangleTable2
public javajs.util.Lst<java.lang.Object> intersectPlane(javajs.util.P4 plane, javajs.util.Lst<java.lang.Object> v, int flags)
intersectPlane
in interface Triangulator
plane
- v
- flags
- 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- both