All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.BoundingPolytope

java.lang.Object
   |
   +----java.media.j3d.Bounds
           |
           +----java.media.j3d.BoundingPolytope

public class BoundingPolytope
extends Bounds
A set of planes which defines a convex, closed polygonal bounding region.


Constructor Index

 o BoundingPolytope()
Constructs a BoundingPolytope and initializes it to a cube where -1 <= x,y,z <= 1
 o BoundingPolytope(Bounds)
Constructs a BoundingPolytope from a bounds object.
 o BoundingPolytope(Bounds[])
Constructs a BoundingPolytope from an array of bounds objects.
 o BoundingPolytope(Vector4d[])
Constructs and initializes a BoundingPolytope from an array of bounding planes.

Method Index

 o clone()
Creates a copy of a polytope
 o combine(Bounds)
Combines this bounding polytope with a bounding object
 o combine(Bounds[])
Combines this bounding polytope with an array of bounding objects
 o combine(Point3d)
Combines this bounding polytope with a point
 o combine(Point3d[])
Combines this bounding polytope with an array of points
 o getPlanes(Vector4d[])
Returns the equations of the bounding planes for this bounding polytope
 o intersect(Bounds)
Test for intersection with another bounds object
 o intersect(Bounds, BoundingPolytope)
Test for intersection with another bounds object
 o intersect(Bounds[])
Test for intersection with another bounds object
 o intersect(Bounds[], BoundingPolytope)
Test for intersection with an array of bounds objects
 o intersect(Point3d)
Test for intersection with a point
 o intersect(Point3d, Point3d)
Test for intersection with a ray
 o set(Bounds)
Sets the planes for this BoundingPolytope by keeping its current number and position of planes and computing new planes positions to enclose the given bounds object.
 o setPlanes(Vector4d[])
Sets the bounding planes for this polytope.
 o transform(BoundingSphere, Transform3D)
This transforms this bounding sphere by the given matrix (needs to be removed)
 o transform(Transform3D)
This transforms this bounding polytope by the given transformation matrix

Constructors

 o BoundingPolytope
 public BoundingPolytope(Vector4d planes[])
Constructs and initializes a BoundingPolytope from an array of bounding planes.

Parameters:
planes - a set of planes defining the polytope
Returns:
a new BoundingPolytope
 o BoundingPolytope
 public BoundingPolytope()
Constructs a BoundingPolytope and initializes it to a cube where -1 <= x,y,z <= 1

Returns:
a new BoundingPolytope
 o BoundingPolytope
 public BoundingPolytope(Bounds boundsObject)
Constructs a BoundingPolytope from a bounds object.

Returns:
a new BoundingPolytope
 o BoundingPolytope
 public BoundingPolytope(Bounds boundsObjects[])
Constructs a BoundingPolytope from an array of bounds objects.

Returns:
a new BoundingPolytope

Methods

 o setPlanes
 public void setPlanes(Vector4d planes[])
Sets the bounding planes for this polytope.

Parameters:
planes - the new set of planes for this polytope
 o getPlanes
 public void getPlanes(Vector4d planes[])
Returns the equations of the bounding planes for this bounding polytope

Parameters:
planes - an array Vector4d to receive the bounding planes
 o set
 public void set(Bounds boundsObject)
Sets the planes for this BoundingPolytope by keeping its current number and position of planes and computing new planes positions to enclose the given bounds object.

Parameters:
boundsObject - is another bounds object
Overrides:
set in class Bounds
 o clone
 public Object clone()
Creates a copy of a polytope

Returns:
a new BoundingPolytope
Overrides:
clone in class Bounds
 o combine
 public void combine(Bounds boundsObject)
Combines this bounding polytope with a bounding object

Parameters:
boundsObject - is another bounds object
Overrides:
combine in class Bounds
 o combine
 public void combine(Bounds boundsObjects[])
Combines this bounding polytope with an array of bounding objects

Parameters:
boundsObjects - is an array of bounds objects
Overrides:
combine in class Bounds
 o combine
 public void combine(Point3d point)
Combines this bounding polytope with a point

Parameters:
point - is a 3d point in space
Overrides:
combine in class Bounds
 o combine
 public void combine(Point3d points[])
Combines this bounding polytope with an array of points

Parameters:
points - is an array of 3d points in space
Overrides:
combine in class Bounds
 o transform
 public void transform(BoundingSphere bounds,
                       Transform3D trans)
This transforms this bounding sphere by the given matrix (needs to be removed)

Overrides:
transform in class Bounds
 o transform
 public void transform(Transform3D matrix)
This transforms this bounding polytope by the given transformation matrix

Parameters:
matrix - is a transformation matrix
Overrides:
transform in class Bounds
 o intersect
 public boolean intersect(Point3d origin,
                          Point3d direction)
Test for intersection with a ray

Parameters:
1 - origin is a the starting point of the ray
2 - direction is the direction of the ray
Returns:
true or false indicating if an intersection occured
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Point3d point)
Test for intersection with a point

Parameters:
point - is a Point defining a position in 3-space
Returns:
true or false indicating if an intersection occured
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Bounds boundsObject)
Test for intersection with another bounds object

Parameters:
boundsObject - is another bounds object
Returns:
true or false indicating if an intersection occured
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Bounds boundsObjects[])
Test for intersection with another bounds object

Parameters:
boundsObjects - is an array of bounding objects
Returns:
true or false indicating if an intersection occured
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Bounds boundsObject,
                          BoundingPolytope newBoundPolytope)
Test for intersection with another bounds object

Parameters:
boundsObject - is another bounds object
newBoundPolytope - is the new bounding polytope which is the intersection of the boundsObject and this BoundingPolytope
Returns:
true or false indicating if an intersection occured
 o intersect
 public boolean intersect(Bounds boundsObjects[],
                          BoundingPolytope newBoundingPolytope)
Test for intersection with an array of bounds objects

Parameters:
boundsObjects - is an array of bounds objects
newBoundPolytope - is the new bounding polytope which is the intersection of the boundsObject and this BoundingPolytope
Returns:
true or false indicating if an intersection occured

All Packages  Class Hierarchy  This Package  Previous  Next  Index