java.lang.Object
de.grogra.vecmath.geom.Variables
de.grogra.vecmath.geom.Octree.State
- Enclosing class:
- Octree
An instance of
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()
.- Author:
- Ole Kniemeyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CellIterator
The cell iterator which is used to traverse the octree along a line.Fields inherited from class de.grogra.vecmath.geom.Variables
cache, istack, tmpLine, tmpMatrix3, tmpPoint0, tmpPoint1, tmpPoint2, tmpPoint3, tmpVector0, tmpVector1, tmpVector2, tmpVector3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
clear
(int id) Clears any mark of volumeid
which has been set previously bymark(int)
within this state.abstract boolean
mark
(int id) Marks the volumeid
within this state, returnstrue
iff the volume has not yet been marked before within this state.
-
Field Details
-
cellIterator
The cell iterator which is used to traverse the octree along a line.
-
-
Constructor Details
-
State
public State()
-
-
Method Details
-
mark
public abstract boolean mark(int id) Marks the volumeid
within this state, returnstrue
iff the volume has not yet been marked before within this state.- Parameters:
id
- id of the volume- Returns:
true
iff the volumeid
is marked for the first time- See Also:
-
clear
public abstract void clear(int id) Clears any mark of volumeid
which has been set previously bymark(int)
within this state.- Parameters:
id
- of the volume- See Also:
-