Class RegionBSPTree3D.RegionNode3D
- java.lang.Object
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTree.AbstractNode<P,N>
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.AbstractRegionNode<Vector3D,RegionBSPTree3D.RegionNode3D>
-
- org.apache.commons.geometry.euclidean.threed.RegionBSPTree3D.RegionNode3D
-
- All Implemented Interfaces:
BSPSubtree<Vector3D,RegionBSPTree3D.RegionNode3D>
,BSPTree.Node<Vector3D,RegionBSPTree3D.RegionNode3D>
- Enclosing class:
- RegionBSPTree3D
public static final class RegionBSPTree3D.RegionNode3D extends AbstractRegionBSPTree.AbstractRegionNode<Vector3D,RegionBSPTree3D.RegionNode3D>
BSP tree node for three dimensional Euclidean space.
-
-
Constructor Summary
Constructors Constructor Description RegionNode3D(AbstractBSPTree<Vector3D,RegionBSPTree3D.RegionNode3D> tree)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvexVolume
getNodeRegion()
Get the region represented by this node.protected RegionBSPTree3D.RegionNode3D
getSelf()
Get a reference to the current instance, cast to type N.-
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.AbstractRegionNode
clearCut, cut, cut, getCutBoundary, getLocation, getTree, insertCut, insertCut, isInside, isOutside, nodeInvalidated, setLocation, setLocationValue, toString
-
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTree.AbstractNode
accept, checkValid, count, depth, getCut, getCutHyperplane, getMinus, getParent, getPlus, height, isInternal, isLeaf, isMinus, isPlus, makeRoot, nodes, setSubtree, trim
-
-
-
-
Constructor Detail
-
RegionNode3D
RegionNode3D(AbstractBSPTree<Vector3D,RegionBSPTree3D.RegionNode3D> tree)
Simple constructor.- Parameters:
tree
- the owning tree instance
-
-
Method Detail
-
getNodeRegion
public ConvexVolume getNodeRegion()
Get the region represented by this node. The returned region contains the entire area contained in this node, regardless of the attributes of any child nodes.- Returns:
- the region represented by this node
-
getSelf
protected RegionBSPTree3D.RegionNode3D getSelf()
Get a reference to the current instance, cast to type N.- Specified by:
getSelf
in classAbstractBSPTree.AbstractNode<Vector3D,RegionBSPTree3D.RegionNode3D>
- Returns:
- a reference to the current instance, as type N.
-
-