Package org.jmol.util
Class Triangulator
java.lang.Object
org.jmol.util.TriangleData
org.jmol.util.Triangulator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[][]
For each corner 0-7: {c c c t} where c c c are the connected corners, arranged clockwise and t is the bitset of triangles associated with faces intersecting at this corner.static final int[][]
Fields inherited from class org.jmol.util.TriangleData
cubeVertexOffsets, edgeVertexes, Pwr2, triangleTable2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate javajs.util.Lst<Object>
getCellProjection
(javajs.util.P4 plane, javajs.util.T3[] pts) javajs.util.P3[]
intersectLine
(javajs.util.P3[] points, int nPoints, javajs.util.P3 ptA, javajs.util.V3 unitVector) javajs.util.Lst<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.
-
Field Details
-
fullCubePolygon
public static final int[][] fullCubePolygon -
fullCubeCorners
public static final int[][] fullCubeCornersFor each corner 0-7: {c c c t} where c c c are the connected corners, arranged clockwise and t is the bitset of triangles associated with faces intersecting at this corner.
-
-
Constructor Details
-
Triangulator
public Triangulator()
-
-
Method Details
-
intersectLine
public javajs.util.P3[] intersectLine(javajs.util.P3[] points, int nPoints, javajs.util.P3 ptA, javajs.util.V3 unitVector) -
getCellProjection
-
intersectPlane
public javajs.util.Lst<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. unit cell- Parameters:
plane
- intersecting plane, or null for a full list of all facesvertices
- the vertices of the box or unit cell in canonical formatflags
- -1 -- projection, of cell only, 0 -- polygon int[], 1 -- edges only, 2 -- triangles only 3 -- both- Returns:
- Lst of P3[3] triangles and P3[2] edge lines
-