org.jmol.util
public class BoxInfo extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
bbcageTickEdges |
private Point3f |
bbCenter |
private Point3f |
bbCorner0 |
private Point3f |
bbCorner1 |
private Vector3f |
bbVector |
private Point3fi[] |
bbVertices |
protected static Point3i[] |
cubeVertexOffsets |
static byte[] |
edges |
private static Point3i[] |
facePoints |
private boolean |
isScaleSet |
static int[] |
toCanonical |
static char[] |
uccageTickEdges |
private static Point3f[] |
unitBboxPoints |
static Point3f[] |
unitCubePoints |
Constructor and Description |
---|
BoxInfo() |
Modifier and Type | Method and Description |
---|---|
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) |
private final Point3f bbCorner0
private final Point3f bbCorner1
private final Point3f bbCenter
private final Vector3f bbVector
private final Point3fi[] bbVertices
private boolean isScaleSet
public static char[] bbcageTickEdges
public static char[] uccageTickEdges
public static final byte[] edges
public static final Point3f[] unitCubePoints
private static Point3i[] facePoints
public static final int[] toCanonical
protected static final Point3i[] cubeVertexOffsets
private static final Point3f[] unitBboxPoints
public List<Object> intersectPlane(Point4f plane, float scale, int flags)
plane
- scale
- flags
- 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- bothpublic Point3f[] getCanonicalCopy(float scale)
public static void scaleBox(Point3f[] pts, float scale)
public static final Point3f[] getCriticalPoints(Point3f[] bbVertices, Point3f offset)
public Point3f getBoundBoxCenter()
public Vector3f getBoundBoxCornerVector()
public Point3f[] getBoundBoxPoints()
public Point3fi[] getBboxVertices()
public void reset()
public void addBoundBoxPoint(Point3f pt)
public void setBbcage(float scale)
public boolean isWithin(Point3f pt)