org.jmol.jvxl.calc
Class TriangleData
java.lang.Object
org.jmol.jvxl.calc.TriangleData
- All Implemented Interfaces:
- TriangleServer
- Direct Known Subclasses:
- MarchingCubes
public class TriangleData
- extends java.lang.Object
- implements TriangleServer
Method Summary |
javax.vecmath.Point3i[] |
getCubeVertexOffsets()
|
java.util.Vector |
intersectPlane(javax.vecmath.Point4f plane,
javax.vecmath.Point3f[] vertices,
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
cubeVertexOffsets
protected static final javax.vecmath.Point3i[] cubeVertexOffsets
edgeVertexes
protected static final byte[] edgeVertexes
triangleTable2
protected static final byte[][] triangleTable2
TriangleData
public TriangleData()
getCubeVertexOffsets
public javax.vecmath.Point3i[] getCubeVertexOffsets()
- Specified by:
getCubeVertexOffsets
in interface TriangleServer
intersectPlane
public java.util.Vector intersectPlane(javax.vecmath.Point4f plane,
javax.vecmath.Point3f[] vertices,
int flags)
- a generic cell - plane intersector -- used for finding the plane through a
unit cell
- Specified by:
intersectPlane
in interface TriangleServer
- Parameters:
plane
- vertices
- flags
- 1 -- edges only 2 -- triangles only 3 -- both
- Returns:
- Vector of Point3f[3] triangles and Point3f[2] edge lines