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.
-
BoundingPolytope()
- Constructs a BoundingPolytope and initializes it to a cube where -1 <= x,y,z <= 1
-
BoundingPolytope(Bounds)
- Constructs a BoundingPolytope from a bounds object.
-
BoundingPolytope(Bounds[])
- Constructs a BoundingPolytope from an array of bounds objects.
-
BoundingPolytope(Vector4d[])
- Constructs and initializes a BoundingPolytope from an array of bounding planes.
-
clone()
- Creates a copy of a polytope
-
combine(Bounds)
- Combines this bounding polytope with a bounding object
-
combine(Bounds[])
- Combines this bounding polytope with an array of bounding objects
-
combine(Point3d)
- Combines this bounding polytope with a point
-
combine(Point3d[])
- Combines this bounding polytope with an array of points
-
getPlanes(Vector4d[])
- Returns the equations of the bounding planes for this bounding polytope
-
intersect(Bounds)
- Test for intersection with another bounds object
-
intersect(Bounds, BoundingPolytope)
- Test for intersection with another bounds object
-
intersect(Bounds[])
- Test for intersection with another bounds object
-
intersect(Bounds[], BoundingPolytope)
- Test for intersection with an array of bounds objects
-
intersect(Point3d)
- Test for intersection with a point
-
intersect(Point3d, Point3d)
-
Test for intersection with a ray
-
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.
-
setPlanes(Vector4d[])
- Sets the bounding planes for this polytope.
-
transform(BoundingSphere, Transform3D)
-
This transforms this bounding sphere by the given matrix
(needs to be removed)
-
transform(Transform3D)
-
This transforms this bounding polytope by the given transformation matrix
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
BoundingPolytope
public BoundingPolytope()
- Constructs a BoundingPolytope and initializes it to a cube where -1 <= x,y,z <= 1
- Returns:
- a new BoundingPolytope
BoundingPolytope
public BoundingPolytope(Bounds boundsObject)
- Constructs a BoundingPolytope from a bounds object.
- Returns:
- a new BoundingPolytope
BoundingPolytope
public BoundingPolytope(Bounds boundsObjects[])
- Constructs a BoundingPolytope from an array of bounds objects.
- Returns:
- a new BoundingPolytope
setPlanes
public void setPlanes(Vector4d planes[])
- Sets the bounding planes for this polytope.
- Parameters:
- planes - the new set of planes for this polytope
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
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
clone
public Object clone()
- Creates a copy of a polytope
- Returns:
- a new BoundingPolytope
- Overrides:
- clone in class Bounds
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
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
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
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
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
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
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
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
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
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
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
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