de.grogra.vecmath.geom
public abstract static class Octree.State extends Variables
State represents the state which
is needed for octree algorithms, namely for the methods
Octree.computeIntersections(de.grogra.vecmath.geom.Line, int, de.grogra.vecmath.geom.IntersectionList, de.grogra.vecmath.geom.Intersection, de.grogra.vecmath.geom.Intersection, de.grogra.vecmath.geom.Octree.State) and Octree.Cell.getVolume(int, de.grogra.vecmath.geom.Octree.State).
A suitable instance for a specific octree implementation
is obtained by Octree.createState().| Modifier and Type | Field and Description |
|---|---|
protected CellIterator |
cellIterator
The cell iterator which is used to traverse the octree
along a line.
|
cache, istack, tmpLine, tmpMatrix3, tmpPoint0, tmpPoint1, tmpPoint2, tmpPoint3, tmpVector0, tmpVector1, tmpVector2, tmpVector3| Constructor and Description |
|---|
Octree.State() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clear(int id)
Clears any mark of volume
id which has been
set previously by mark(int) within this state. |
abstract boolean |
mark(int id)
Marks the volume
id within this state,
returns true iff the volume
has not yet been marked before within this state. |
protected CellIterator cellIterator
public abstract void clear(int id)
id which has been
set previously by mark(int) within this state.id - of the volumemark(int)public abstract boolean mark(int id)
id within this state,
returns true iff the volume
has not yet been marked before within this state.id - id of the volumetrue iff the volume id
is marked for the first timeclear(int)