|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.Body
org.openmali.spatial.bodies.ConvexHull
org.openmali.spatial.bounds.BoundingPolytope
public class BoundingPolytope
A set of planes that prescribe a convex, closed polygonal bounding region.
| Field Summary |
|---|
| Fields inherited from class org.openmali.spatial.bodies.ConvexHull |
|---|
slabs |
| Fields inherited from class org.openmali.spatial.bodies.Body |
|---|
centerX, centerY, centerZ, distComputed, maxCenterDist, maxCenterDistSquared |
| Constructor Summary | |
|---|---|
BoundingPolytope()
Constructs a new BoundingPolytope object. |
|
BoundingPolytope(Bounds bo)
Constructs a new BoundingPolytope object. |
|
BoundingPolytope(Bounds[] bos)
Constructs a new BoundingPolytope object. |
|
BoundingPolytope(Vector4f[] planes)
Constructs a new BoundingPolytope object. |
|
| Method Summary | |
|---|---|
Bounds |
closestIntersection(Bounds[] boundsObjects)
Finds closest bounding object that intersects this bounding object. |
void |
compute(java.util.List<Tuple3f> coords)
|
void |
compute(Tuple3f[] coords)
|
void |
compute(VertexContainer source)
|
void |
getPlanes(Vector4f[] into)
Gets the bounding planes of this BoundingPolytope. |
BoundsType |
getType()
|
BoundingPolytope |
intersectNew(Bounds bo)
Computes a new BoundingPolytope that bounds the volume created by the intersection of this BoundingPolytope with another Bounds object |
BoundingPolytope |
intersectNew(Bounds[] bos)
compute a new BoundingPolytope that bounds the volume created by the intersection of this BoundingPolytope with an array of Bounds objects |
boolean |
intersects(Bounds bo)
Tests for intersection with another Bounds object. |
boolean |
intersects(Bounds[] bos)
Tests for intersection with an array of Bounds objects. |
boolean |
intersects(Point3f rayOrigin,
Vector3f rayDirection)
Tests for intersection with a ray. |
boolean |
intersects(Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Tests for intersection with a ray. |
boolean |
intersects(Ray3f ray)
Tests for intersection with a ray. |
boolean |
intersects(Ray3f ray,
Tuple3f intersection)
Tests for intersection with a ray. |
void |
set(Bounds boundsObject)
Sets the the value of this Bounds object to enclode the specified bounding object |
void |
set(Bounds[] bounds)
Sets this bounds to the comnination of all the specified bounds. |
void |
set(Box boundsObject)
Sets the the value of this Bounds object to enclode the specified bounding object |
void |
set(Sphere boundsObject)
Sets the the value of this Bounds object to enclode the specified bounding object |
void |
setPlanes(Vector4f[] planes)
Sets the bounding planes of this BoundingPolytope. |
java.lang.String |
toString()
|
void |
transform(Bounds bounds,
Matrix4f trans)
Transforms a Bounds object so that it bounds a volume that is the result of transforming the given bounding object by the given transform. |
void |
transform(Matrix4f trans)
Transforms the Bounds object by the given transform. |
| Methods inherited from class org.openmali.spatial.bodies.ConvexHull |
|---|
combine, combine, combine, combine, combine, contains, contains, intersect |
| Methods inherited from class org.openmali.spatial.bodies.Body |
|---|
getCenter, getCenterX, getCenterY, getCenterZ, getMaxCenterDistance, getMaxCenterDistanceSquared, setCenter, setCenter, setMaxCenterDistanceSquared |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.spatial.bounds.Bounds |
|---|
combine, combine, combine, contains, contains, getCenter, getCenterX, getCenterY, getCenterZ, getMaxCenterDistance, getMaxCenterDistanceSquared |
| Methods inherited from interface org.openmali.spatial.bodies.BodyInterface |
|---|
combine, combine |
| Constructor Detail |
|---|
public BoundingPolytope()
public BoundingPolytope(Vector4f[] planes)
public BoundingPolytope(Bounds bo)
public BoundingPolytope(Bounds[] bos)
| Method Detail |
|---|
public final BoundsType getType()
getType in interface Bounds
public boolean intersects(Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
intersects in interface Bounds
public boolean intersects(Ray3f ray,
Tuple3f intersection)
intersects in interface Bounds
public boolean intersects(Point3f rayOrigin,
Vector3f rayDirection)
intersects in interface Boundspublic boolean intersects(Ray3f ray)
intersects in interface Boundspublic boolean intersects(Bounds bo)
intersects in interface Boundspublic boolean intersects(Bounds[] bos)
intersects in interface Boundspublic BoundingPolytope intersectNew(Bounds bo)
bo - public BoundingPolytope intersectNew(Bounds[] bos)
bos - public Bounds closestIntersection(Bounds[] boundsObjects)
closestIntersection in interface Bounds
public void transform(Bounds bounds,
Matrix4f trans)
transform in interface Boundspublic void transform(Matrix4f trans)
transform in interface Boundspublic void setPlanes(Vector4f[] planes)
public void getPlanes(Vector4f[] into)
public void set(Box boundsObject)
set in interface Boundspublic void set(Sphere boundsObject)
set in interface Boundspublic void set(Bounds[] bounds)
set in interface Boundspublic void set(Bounds boundsObject)
set in interface Boundspublic void compute(VertexContainer source)
compute in interface Boundspublic void compute(java.util.List<Tuple3f> coords)
compute in interface Boundspublic void compute(Tuple3f[] coords)
compute in interface Boundspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||