org.jmol.util
Class TriangleData

java.lang.Object
  extended by org.jmol.util.TriangleData
Direct Known Subclasses:
MarchingCubes

public class TriangleData
extends Object


Field Summary
protected static Point3i[] cubeVertexOffsets
           
protected static byte[] edgeVertexes
           
private static int[][] fullCubePolygon
           
protected static int[] Pwr2
           
protected static byte[][] triangleTable2
           
 
Constructor Summary
TriangleData()
           
 
Method Summary
static List intersectPlane(Point4f plane, List 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
 

Field Detail

Pwr2

protected static final int[] Pwr2

fullCubePolygon

private static final int[][] fullCubePolygon

cubeVertexOffsets

protected static final Point3i[] cubeVertexOffsets

edgeVertexes

protected static final byte[] edgeVertexes

triangleTable2

protected static final byte[][] triangleTable2
Constructor Detail

TriangleData

public TriangleData()
Method Detail

intersectPlane

public static List intersectPlane(Point4f plane,
                                  List 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:
List of Point3f[3] triangles and Point3f[2] edge lines