de.grogra.vecmath.geom
public abstract class VolumeBase extends java.lang.Object implements Volume
Volume. It can be used as base class
for volumes.| Constructor and Description |
|---|
VolumeBase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitboxContainsBoundary, computeIntersections, computeNormal, computeTangents, computeUV, contains, getExtentprotected 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.public Volume operator$and(Volume v)
Volumev.operator$and in interface Volumev - a volumea and bCSGIntersectionpublic Volume operator$com()
Volumeoperator$com in interface VolumeCSGComplementpublic Volume operator$or(Volume v)
Volumev.operator$or in interface Volumev - a volumevCSGUnionpublic Volume operator$sub(Volume v)
Volumea and b.operator$sub in interface Volumev - the volume to be subtractedbCSGDifferencepublic 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()