|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.vecmath.geom.VolumeBase
de.grogra.vecmath.geom.CompoundVolume
public abstract class CompoundVolume
This abstract class can be used as base class for compound volumes whose geometry is defined in terms of a set of contained volumes.
| Field Summary | |
|---|---|
java.util.ArrayList<Volume> |
volumes
The list of volumes from which this compound volume is computed. |
| Constructor Summary | |
|---|---|
CompoundVolume()
|
|
| Method Summary | |
|---|---|
boolean |
boxContainsBoundary(BoundingBox box,
Tuple3d center,
double radius,
Variables temp)
This implementation of boxContainsBoundary returns
true iff at least one of the invocations of this method
on the volumes returns true. |
void |
computeNormal(Intersection is,
Vector3d normal)
This method computes the unit normal vector of an intersection is which has been computed previously by the invocation
of Volume.computeIntersections(de.grogra.vecmath.geom.Line, int, de.grogra.vecmath.geom.IntersectionList, de.grogra.vecmath.geom.Intersection, de.grogra.vecmath.geom.Intersection) on this volume. |
void |
computeTangents(Intersection is,
Vector3d dpdu,
Vector3d dpdv)
This method computes the derivatives of the surface point (as function of the uv-coordinates, see Volume.computeUV(de.grogra.vecmath.geom.Intersection, javax.vecmath.Vector2d))
with respect to u and v at the intersection point. |
void |
computeUV(Intersection is,
Vector2d uv)
This method computes the uv-coordinates of an intersection point is which has been computed previously by the invocation
of Volume.computeIntersections(de.grogra.vecmath.geom.Line, int, de.grogra.vecmath.geom.IntersectionList, de.grogra.vecmath.geom.Intersection, de.grogra.vecmath.geom.Intersection) on this volume. |
| Methods inherited from class de.grogra.vecmath.geom.VolumeBase |
|---|
addConvexIntersections, getId, operator$and, operator$com, operator$or, operator$sub, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.grogra.vecmath.geom.Volume |
|---|
computeIntersections, contains, getExtent |
| Field Detail |
|---|
public java.util.ArrayList<Volume> volumes
| Constructor Detail |
|---|
public CompoundVolume()
| Method Detail |
|---|
public boolean boxContainsBoundary(BoundingBox box,
Tuple3d center,
double radius,
Variables temp)
boxContainsBoundary returns
true iff at least one of the invocations of this method
on the volumes returns true.
box - bounding boxcenter - center coordinates of boxradius - radius of enclosing spheretemp - has to be provided by the invoker, may be used in implementations
true if box contains (part of) the boundary of this volume
public void computeNormal(Intersection is,
Vector3d normal)
Volumeis which has been computed previously by the invocation
of Volume.computeIntersections(de.grogra.vecmath.geom.Line, int, de.grogra.vecmath.geom.IntersectionList, de.grogra.vecmath.geom.Intersection, de.grogra.vecmath.geom.Intersection) on this volume.
is - a previously computed intersectionnormal - resulting unit vector is placed in here
public void computeTangents(Intersection is,
Vector3d dpdu,
Vector3d dpdv)
VolumeVolume.computeUV(de.grogra.vecmath.geom.Intersection, javax.vecmath.Vector2d))
with respect to u and v at the intersection point.
is - a previously computed intersectiondpdu - resulting derivative with respect to udpdv - resulting derivative with respect to v
public void computeUV(Intersection is,
Vector2d uv)
Volumeis which has been computed previously by the invocation
of Volume.computeIntersections(de.grogra.vecmath.geom.Line, int, de.grogra.vecmath.geom.IntersectionList, de.grogra.vecmath.geom.Intersection, de.grogra.vecmath.geom.Intersection) on this volume.
is - a previously computed intersectionuv - resulting uv-coordinates are placed in here
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||