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 |
private boolean |
isScaleSet |
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 |
---|---|
void |
addBoundBoxPoint(javax.vecmath.Point3f pt) |
static void |
addPoint(javax.vecmath.Point3f pt,
javax.vecmath.Point3f xyzMin,
javax.vecmath.Point3f xyzMax,
float margin) |
Point3fi[] |
getBboxVertices() |
javax.vecmath.Point3f |
getBoundBoxCenter() |
javax.vecmath.Vector3f |
getBoundBoxCornerVector() |
java.util.Map<java.lang.String,java.lang.Object> |
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<java.lang.Object> |
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
|
boolean |
isWithin(javax.vecmath.Point3f pt) |
void |
reset() |
static void |
scaleBox(javax.vecmath.Point3f[] pts,
float scale) |
void |
setBbcage(float scale) |
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
private boolean isScaleSet
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<java.lang.Object> 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()
public java.util.Map<java.lang.String,java.lang.Object> getBoundBoxInfo()
public void setBoundBox(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, boolean byCorner, float scale)
public void reset()
public void addBoundBoxPoint(javax.vecmath.Point3f pt)
public static void addPoint(javax.vecmath.Point3f pt, javax.vecmath.Point3f xyzMin, javax.vecmath.Point3f xyzMax, float margin)
public void setBbcage(float scale)
public boolean isWithin(javax.vecmath.Point3f pt)