|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.vecmath.geom.VolumeBase
public abstract class VolumeBase
This abstract class implements the operator and id methods of the
interface Volume. It can be used as base class
for volumes.
| Constructor Summary | |
|---|---|
VolumeBase()
|
|
| Method Summary | |
|---|---|
protected boolean |
addConvexIntersections(double u0,
int f0,
double u1,
int f1,
boolean solid,
Line line,
int which,
IntersectionList list,
Intersection excludeStart,
Intersection excludeEnd)
|
int |
getId()
Returns the id which has been set by Volume.setId(int). |
Volume |
operator$and(Volume v)
This operator method creates the intersection of this volume and v. |
Volume |
operator$com()
This operator method creates the complement of this volume. |
Volume |
operator$or(Volume v)
This operator method creates the union of this volume and v. |
Volume |
operator$sub(Volume v)
This operator method creates the difference between a and b. |
void |
setId(int id)
Sets a unique identifier for this volume. |
| 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 |
|---|
boxContainsBoundary, computeIntersections, computeNormal, computeTangents, computeUV, contains, getExtent |
| Constructor Detail |
|---|
public VolumeBase()
| Method Detail |
|---|
protected boolean addConvexIntersections(double u0,
int f0,
double u1,
int f1,
boolean solid,
Line line,
int which,
IntersectionList list,
Intersection excludeStart,
Intersection excludeEnd)
public int getId()
VolumeVolume.setId(int). Identifiers
are non-negative and should be consecutive starting at zero, so that
they can be used as indices into arrays which associate additional
information with the volumes. Small gaps in the set of used identifiers
are tolerable.
getId in interface Volumepublic Volume operator$and(Volume v)
Volumev.
operator$and in interface Volumev - a volume
a and bCSGIntersectionpublic Volume operator$com()
Volume
operator$com in interface VolumeCSGComplementpublic Volume operator$or(Volume v)
Volumev.
operator$or in interface Volumev - a volume
vCSGUnionpublic Volume operator$sub(Volume v)
Volumea and b.
operator$sub in interface Volumev - the volume to be subtracted
bCSGDifferencepublic void setId(int id)
Volumeid has to be
non-negative, the ids of all coexisting volumes should
be consecutive numbers starting at zero.
setId in interface Volumeid - id for this volumeVolume.getId()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||