org.jmol.modelset
Class BoxInfo
java.lang.Object
org.jmol.modelset.BoxInfo
public class BoxInfo
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bbCorner0
private final javax.vecmath.Point3f bbCorner0
bbCorner1
private final javax.vecmath.Point3f bbCorner1
bbCenter
private final javax.vecmath.Point3f bbCenter
bbVector
private final javax.vecmath.Vector3f bbVector
bbVertices
private final Point3fi[] bbVertices
bbcageTickEdges
public static char[] bbcageTickEdges
uccageTickEdges
public static char[] uccageTickEdges
edges
public static final byte[] edges
unitCubePoints
public static final javax.vecmath.Point3f[] unitCubePoints
facePoints
private static javax.vecmath.Point3i[] facePoints
toCanonical
public static final int[] toCanonical
cubeVertexOffsets
protected static final javax.vecmath.Point3i[] cubeVertexOffsets
unitBboxPoints
private static final javax.vecmath.Point3f[] unitBboxPoints
BoxInfo
public BoxInfo()
intersectPlane
public java.util.List intersectPlane(javax.vecmath.Point4f plane,
float scale,
int flags)
- returns a set of points defining the geometric object within the given
plane that spans the unit cell within the given margins
- Parameters:
plane
- scale
- flags
- 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- both
- Returns:
- a set of points
getCanonicalCopy
public javax.vecmath.Point3f[] getCanonicalCopy(float scale)
getCanonicalCopy
public static final javax.vecmath.Point3f[] getCanonicalCopy(javax.vecmath.Point3f[] bbUcPoints,
float scale)
scaleBox
public static void scaleBox(javax.vecmath.Point3f[] pts,
float scale)
getFacesFromCriticalPoints
public static javax.vecmath.Point4f[] getFacesFromCriticalPoints(javax.vecmath.Point3f[] points)
getCriticalPoints
public static final javax.vecmath.Point3f[] getCriticalPoints(javax.vecmath.Point3f[] bbVertices,
javax.vecmath.Point3f offset)
getBoundBoxCenter
public javax.vecmath.Point3f getBoundBoxCenter()
getBoundBoxCornerVector
public javax.vecmath.Vector3f getBoundBoxCornerVector()
getBoundBoxPoints
public javax.vecmath.Point3f[] getBoundBoxPoints()
getBboxVertices
public Point3fi[] getBboxVertices()
getBoundBoxInfo
java.util.Hashtable getBoundBoxInfo()
setBoundBox
void setBoundBox(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
boolean byCorner,
float scale)
reset
void reset()
addBoundBoxPoint
void addBoundBoxPoint(javax.vecmath.Point3f pt)
setBbcage
void setBbcage(float scale)
isWithin
boolean isWithin(javax.vecmath.Point3f pt)