org.jmol.util
Class BoxInfo
java.lang.Object
org.jmol.util.BoxInfo
public class BoxInfo
- extends Object
|
Method Summary |
void |
addBoundBoxPoint(Point3f pt)
|
static void |
addPoint(Point3f pt,
Point3f xyzMin,
Point3f xyzMax,
float margin)
|
Point3fi[] |
getBboxVertices()
|
Point3f |
getBoundBoxCenter()
|
Vector3f |
getBoundBoxCornerVector()
|
Map<String,Object> |
getBoundBoxInfo()
|
Point3f[] |
getBoundBoxPoints()
|
Point3f[] |
getCanonicalCopy(float scale)
|
static Point3f[] |
getCanonicalCopy(Point3f[] bbUcPoints,
float scale)
|
static Point3f[] |
getCriticalPoints(Point3f[] bbVertices,
Point3f offset)
|
static Point4f[] |
getFacesFromCriticalPoints(Point3f[] points)
|
List<Object> |
intersectPlane(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 |
boolean |
isWithin(Point3f pt)
|
void |
reset()
|
static void |
scaleBox(Point3f[] pts,
float scale)
|
void |
setBbcage(float scale)
|
void |
setBoundBox(Point3f pt1,
Point3f pt2,
boolean byCorner,
float scale)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bbCorner0
private final Point3f bbCorner0
bbCorner1
private final Point3f bbCorner1
bbCenter
private final Point3f bbCenter
bbVector
private final Vector3f bbVector
bbVertices
private final Point3fi[] bbVertices
isScaleSet
private boolean isScaleSet
bbcageTickEdges
public static char[] bbcageTickEdges
uccageTickEdges
public static char[] uccageTickEdges
edges
public static final byte[] edges
unitCubePoints
public static final Point3f[] unitCubePoints
facePoints
private static Point3i[] facePoints
toCanonical
public static final int[] toCanonical
cubeVertexOffsets
protected static final Point3i[] cubeVertexOffsets
unitBboxPoints
private static final Point3f[] unitBboxPoints
BoxInfo
public BoxInfo()
intersectPlane
public List<Object> intersectPlane(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 Point3f[] getCanonicalCopy(float scale)
getCanonicalCopy
public static final Point3f[] getCanonicalCopy(Point3f[] bbUcPoints,
float scale)
scaleBox
public static void scaleBox(Point3f[] pts,
float scale)
getFacesFromCriticalPoints
public static Point4f[] getFacesFromCriticalPoints(Point3f[] points)
getCriticalPoints
public static final Point3f[] getCriticalPoints(Point3f[] bbVertices,
Point3f offset)
getBoundBoxCenter
public Point3f getBoundBoxCenter()
getBoundBoxCornerVector
public Vector3f getBoundBoxCornerVector()
getBoundBoxPoints
public Point3f[] getBoundBoxPoints()
getBboxVertices
public Point3fi[] getBboxVertices()
getBoundBoxInfo
public Map<String,Object> getBoundBoxInfo()
setBoundBox
public void setBoundBox(Point3f pt1,
Point3f pt2,
boolean byCorner,
float scale)
reset
public void reset()
addBoundBoxPoint
public void addBoundBoxPoint(Point3f pt)
addPoint
public static void addPoint(Point3f pt,
Point3f xyzMin,
Point3f xyzMax,
float margin)
setBbcage
public void setBbcage(float scale)
isWithin
public boolean isWithin(Point3f pt)