|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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()
Volume
Volume.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 Volume
public Volume operator$and(Volume v)
Volume
v
.
operator$and
in interface Volume
v
- a volume
a
and b
CSGIntersection
public Volume operator$com()
Volume
operator$com
in interface Volume
CSGComplement
public Volume operator$or(Volume v)
Volume
v
.
operator$or
in interface Volume
v
- a volume
v
CSGUnion
public Volume operator$sub(Volume v)
Volume
a
and b
.
operator$sub
in interface Volume
v
- the volume to be subtracted
b
CSGDifference
public void setId(int id)
Volume
id
has to be
non-negative, the id
s of all coexisting volumes should
be consecutive numbers starting at zero.
setId
in interface Volume
id
- id for this volumeVolume.getId()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |