org.jmol.util
Class TriangleData
java.lang.Object
org.jmol.util.TriangleData
- Direct Known Subclasses:
- MarchingCubes
public class TriangleData
- extends java.lang.Object
Method Summary |
static java.util.List<java.lang.Object> |
intersectPlane(javax.vecmath.Point4f plane,
java.util.List<java.lang.Object> v,
int flags)
a generic cell - plane intersector -- used for finding the plane through a
unit cell |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pwr2
protected static final int[] Pwr2
fullCubePolygon
private static final int[][] fullCubePolygon
cubeVertexOffsets
protected static final javax.vecmath.Point3i[] cubeVertexOffsets
edgeVertexes
protected static final byte[] edgeVertexes
triangleTable2
protected static final byte[][] triangleTable2
TriangleData
public TriangleData()
intersectPlane
public static java.util.List<java.lang.Object> intersectPlane(javax.vecmath.Point4f plane,
java.util.List<java.lang.Object> v,
int flags)
- a generic cell - plane intersector -- used for finding the plane through a
unit cell
- Parameters:
plane
- v
- flags
- 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- both
- Returns:
- Vector of Point3f[3] triangles and Point3f[2] edge lines