Class RegionFactory.VanishingToLeaf
java.lang.Object
org.apache.commons.math3.geometry.partitioning.RegionFactory.VanishingToLeaf
- All Implemented Interfaces:
BSPTree.VanishingCutHandler<S>
- Enclosing class:
RegionFactory<S extends Space>
private class RegionFactory.VanishingToLeaf
extends Object
implements BSPTree.VanishingCutHandler<S>
Handler replacing nodes with vanishing cuts with leaf nodes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Inside/outside indocator to use for ambiguous nodes. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inside
private final boolean insideInside/outside indocator to use for ambiguous nodes.
-
-
Constructor Details
-
VanishingToLeaf
VanishingToLeaf(boolean inside) Simple constructor.- Parameters:
inside
- inside/outside indicator to use for ambiguous nodes
-
-
Method Details
-
fixNode
Fix a node with both vanished cut and children.- Specified by:
fixNode
in interfaceBSPTree.VanishingCutHandler<S extends Space>
- Parameters:
node
- node to fix- Returns:
- fixed node
-