Class AbstractRegionBSPTree.RegionMergeOperator<P extends Point<P>,N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>>
- java.lang.Object
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTreeMergeOperator<P,N>
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.RegionMergeOperator<P,N>
-
- Type Parameters:
P- Point implementation typeN- BSP tree node implementation type
- Direct Known Subclasses:
AbstractRegionBSPTree.DifferenceOperator,AbstractRegionBSPTree.IntersectionOperator,AbstractRegionBSPTree.UnionOperator,AbstractRegionBSPTree.XorOperator
- Enclosing class:
- AbstractRegionBSPTree<P extends Point<P>,N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>>
private abstract static class AbstractRegionBSPTree.RegionMergeOperator<P extends Point<P>,N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>> extends AbstractBSPTreeMergeOperator<P,N>
Class containing the basic algorithm for merging region BSP trees.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRegionMergeOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(AbstractRegionBSPTree<P,N> inputTree1, AbstractRegionBSPTree<P,N> inputTree2, AbstractRegionBSPTree<P,N> outputTree)Merge two input trees, storing the output in the third.-
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTreeMergeOperator
getOutputTree, mergeLeaf, outputNode, outputSubtree, performMerge, setOutputTree
-
-
-
-
Method Detail
-
apply
public void apply(AbstractRegionBSPTree<P,N> inputTree1, AbstractRegionBSPTree<P,N> inputTree2, AbstractRegionBSPTree<P,N> outputTree)
Merge two input trees, storing the output in the third. The output tree can be one of the input trees. The output tree is condensed before the method returns.- Parameters:
inputTree1- first input treeinputTree2- second input treeoutputTree- the tree that will contain the result of the merge; may be one of the input trees
-
-