org.miv.pherd.ntree
Class OctreeCellSpace
java.lang.Object
org.miv.pherd.ntree.CellSpace
org.miv.pherd.ntree.OctreeCellSpace
public class OctreeCellSpace
- extends CellSpace
Cell space for an octree.
This cell space defines height subcells for each cell subdivision.
- Since:
- 2007
- Author:
- Antoine Dutot
C
protected Anchor C
OctreeCellSpace
public OctreeCellSpace(Anchor lo,
Anchor hi)
getDivisions
public int getDivisions()
- Description copied from class:
CellSpace
- Number of sub-cells to create to divide a cell.
- Specified by:
getDivisions in class CellSpace
- Returns:
- The number of sub-cells obtained for a cell mitosis.
newSubCellSpace
public CellSpace newSubCellSpace(int i)
- Description copied from class:
CellSpace
- Create the appropriate cell space for the given sub-cell index. This
method role is to create a sub-cell space when subdividing a cell.
- Specified by:
newSubCellSpace in class CellSpace
- Parameters:
i - The sub-cell index, must be equal or larger than zero and less
than CellSpace.getDivisions().
- Returns:
- A new cell space.
toString
public String toString()
- Overrides:
toString in class Object
resize
public void resize(Point3 min,
Point3 max)
- Description copied from class:
CellSpace
- Resize this space to the given bounding box. This operation is valid
only if this CellSpace has no child spaces.
- Overrides:
resize in class CellSpace
- Parameters:
min - The lowest point (bottom-left-front).max - The highest point (top-right-back).
Copyright © 2011. All Rights Reserved.