public class BoundingBoxUtility extends Object
Constructor and Description |
---|
BoundingBoxUtility() |
Modifier and Type | Method and Description |
---|---|
static Rectangle3D |
calculateBoundingBox(double[][] verts)
Calculate the bounding box of the vertices verts.
|
static Rectangle3D |
calculateBoundingBox(double[] initialMatrix,
SceneGraphComponent sgc)
Calculate the bounding box assuming that the scene graph is first transformed by
the matrix initialMatrix
|
static Rectangle3D |
calculateBoundingBox(PointSet ps) |
static Rectangle3D |
calculateBoundingBox(SceneGraphComponent sgc) |
static Rectangle3D |
calculateBoundingBox(Sphere sph) |
static Rectangle3D |
calculateChildrenBoundingBox(SceneGraphComponent sgc)
Calculate the bounding box for the scene graph tooted at sgc but
do not apply the transformation, if any, attached to sgc.
|
static Rectangle3D |
removeZeroExtends(Rectangle3D r)
Adds a small value to a dimension of zero extend
|
public static Rectangle3D calculateBoundingBox(double[] initialMatrix, SceneGraphComponent sgc)
tmp
- sgc
- public static Rectangle3D calculateBoundingBox(double[][] verts)
verts
- Pn
for details.public static Rectangle3D calculateBoundingBox(PointSet ps)
public static Rectangle3D calculateBoundingBox(SceneGraphComponent sgc)
public static Rectangle3D calculateBoundingBox(Sphere sph)
public static Rectangle3D calculateChildrenBoundingBox(SceneGraphComponent sgc)
sgc
- public static Rectangle3D removeZeroExtends(Rectangle3D r)
r
-