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