public class BoxInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
bbcageTickEdges |
private P3 |
bbCenter |
private P3 |
bbCorner0 |
private P3 |
bbCorner1 |
private V3 |
bbVector |
private Point3fi[] |
bbVertices |
protected static P3i[] |
cubeVertexOffsets |
static byte[] |
edges |
private static P3i[] |
facePoints |
private boolean |
isScaleSet |
static int[] |
toCanonical |
static char[] |
uccageTickEdges |
private static P3[] |
unitBboxPoints |
static P3[] |
unitCubePoints |
Constructor and Description |
---|
BoxInfo() |
Modifier and Type | Method and Description |
---|---|
void |
addBoundBoxPoint(P3 pt) |
static void |
addPoint(P3 pt,
P3 xyzMin,
P3 xyzMax,
float margin) |
static void |
addPointXYZ(float x,
float y,
float z,
P3 xyzMin,
P3 xyzMax,
float margin) |
Point3fi[] |
getBboxVertices() |
P3 |
getBoundBoxCenter() |
V3 |
getBoundBoxCornerVector() |
java.util.Map<java.lang.String,java.lang.Object> |
getBoundBoxInfo() |
P3[] |
getBoundBoxPoints(boolean isAll) |
P3[] |
getCanonicalCopy(float scale) |
static P3[] |
getCanonicalCopy(P3[] bbUcPoints,
float scale) |
static P3[] |
getCriticalPoints(P3[] bbVertices,
Tuple3f offset) |
static P4[] |
getFacesFromCriticalPoints(P3[] points) |
JmolList<java.lang.Object> |
intersectPlane(P4 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(P3 pt) |
void |
reset() |
static void |
scaleBox(P3[] pts,
float scale) |
void |
setBbcage(float scale) |
void |
setBoundBox(P3 pt1,
P3 pt2,
boolean byCorner,
float scale) |
private final P3 bbCorner0
private final P3 bbCorner1
private final P3 bbCenter
private final V3 bbVector
private final Point3fi[] bbVertices
private boolean isScaleSet
public static char[] bbcageTickEdges
public static char[] uccageTickEdges
public static final byte[] edges
public static final P3[] unitCubePoints
private static P3i[] facePoints
public static final int[] toCanonical
protected static final P3i[] cubeVertexOffsets
private static final P3[] unitBboxPoints
public JmolList<java.lang.Object> intersectPlane(P4 plane, float scale, int flags)
plane
- scale
- flags
- 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- bothpublic P3[] getCanonicalCopy(float scale)
public static void scaleBox(P3[] pts, float scale)
public P3 getBoundBoxCenter()
public V3 getBoundBoxCornerVector()
public P3[] getBoundBoxPoints(boolean isAll)
public Point3fi[] getBboxVertices()
public java.util.Map<java.lang.String,java.lang.Object> getBoundBoxInfo()
public void reset()
public void addBoundBoxPoint(P3 pt)
public static void addPointXYZ(float x, float y, float z, P3 xyzMin, P3 xyzMax, float margin)
public void setBbcage(float scale)
public boolean isWithin(P3 pt)