Uses of Class
org.apache.commons.math3.geometry.partitioning.BSPTree
-
Packages that use BSPTree Package Description org.apache.commons.math3.geometry.euclidean.oned This package provides basic 1D geometry components.org.apache.commons.math3.geometry.euclidean.threed This package provides basic 3D geometry components.org.apache.commons.math3.geometry.euclidean.twod This package provides basic 2D geometry components.org.apache.commons.math3.geometry.partitioning This package provides classes to implement Binary Space Partition trees.org.apache.commons.math3.geometry.spherical.oned This package provides basic geometry components on the 1-sphere.org.apache.commons.math3.geometry.spherical.twod This package provides basic geometry components on the 2-sphere. -
-
Uses of BSPTree in org.apache.commons.math3.geometry.euclidean.oned
Fields in org.apache.commons.math3.geometry.euclidean.oned declared as BSPTree Modifier and Type Field Description private BSPTree<Euclidean1D>IntervalsSet.SubIntervalsIterator. currentCurrent node.Methods in org.apache.commons.math3.geometry.euclidean.oned that return BSPTree Modifier and Type Method Description private static BSPTree<Euclidean1D>IntervalsSet. buildTree(double lower, double upper, double tolerance)Build an inside/outside tree representing a single interval.private BSPTree<Euclidean1D>IntervalsSet. childAfter(BSPTree<Euclidean1D> node)Find the child node just after an internal node.private BSPTree<Euclidean1D>IntervalsSet. childBefore(BSPTree<Euclidean1D> node)Find the child node just before an internal node.private BSPTree<Euclidean1D>IntervalsSet. getFirstIntervalBoundary()Get the node corresponding to the first interval boundary.private BSPTree<Euclidean1D>IntervalsSet. getFirstLeaf(BSPTree<Euclidean1D> root)Get the first leaf node of a tree.private BSPTree<Euclidean1D>IntervalsSet. leafAfter(BSPTree<Euclidean1D> node)Find the leaf node just after an internal node.private BSPTree<Euclidean1D>IntervalsSet. leafBefore(BSPTree<Euclidean1D> node)Find the leaf node just before an internal node.private BSPTree<Euclidean1D>IntervalsSet. nextInternalNode(BSPTree<Euclidean1D> node)Get the next internal node.private BSPTree<Euclidean1D>IntervalsSet. previousInternalNode(BSPTree<Euclidean1D> node)Get the previous internal node.Methods in org.apache.commons.math3.geometry.euclidean.oned with parameters of type BSPTree Modifier and Type Method Description IntervalsSetIntervalsSet. buildNew(BSPTree<Euclidean1D> tree)Build a region using the instance as a prototype.private BSPTree<Euclidean1D>IntervalsSet. childAfter(BSPTree<Euclidean1D> node)Find the child node just after an internal node.private BSPTree<Euclidean1D>IntervalsSet. childBefore(BSPTree<Euclidean1D> node)Find the child node just before an internal node.private doubleIntervalsSet. getAngle(BSPTree<Euclidean1D> node)Get the abscissa of an internal node.private BSPTree<Euclidean1D>IntervalsSet. getFirstLeaf(BSPTree<Euclidean1D> root)Get the first leaf node of a tree.private booleanIntervalsSet. isAfterParent(BSPTree<Euclidean1D> node)Check if a node is the child after its parent in ascending order.private booleanIntervalsSet. isBeforeParent(BSPTree<Euclidean1D> node)Check if a node is the child before its parent in ascending order.private booleanIntervalsSet. isDirect(BSPTree<Euclidean1D> node)Check if an internal node has a direct oriented point.private booleanIntervalsSet. isIntervalEnd(BSPTree<Euclidean1D> node)Check if an internal node corresponds to the end abscissa of an interval.private booleanIntervalsSet. isIntervalStart(BSPTree<Euclidean1D> node)Check if an internal node corresponds to the start abscissa of an interval.private BSPTree<Euclidean1D>IntervalsSet. leafAfter(BSPTree<Euclidean1D> node)Find the leaf node just after an internal node.private BSPTree<Euclidean1D>IntervalsSet. leafBefore(BSPTree<Euclidean1D> node)Find the leaf node just before an internal node.private BSPTree<Euclidean1D>IntervalsSet. nextInternalNode(BSPTree<Euclidean1D> node)Get the next internal node.private BSPTree<Euclidean1D>IntervalsSet. previousInternalNode(BSPTree<Euclidean1D> node)Get the previous internal node.Constructors in org.apache.commons.math3.geometry.euclidean.oned with parameters of type BSPTree Constructor Description IntervalsSet(BSPTree<Euclidean1D> tree)Deprecated.as of 3.3, replaced withIntervalsSet(BSPTree, double)IntervalsSet(BSPTree<Euclidean1D> tree, double tolerance)Build an intervals set from an inside/outside BSP tree. -
Uses of BSPTree in org.apache.commons.math3.geometry.euclidean.threed
Methods in org.apache.commons.math3.geometry.euclidean.threed that return BSPTree Modifier and Type Method Description private static BSPTree<Euclidean3D>PolyhedronsSet. buildBoundary(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax, double tolerance)Build a parallellepipedic box boundary.Methods in org.apache.commons.math3.geometry.euclidean.threed with parameters of type BSPTree Modifier and Type Method Description private SubHyperplane<Euclidean3D>PolyhedronsSet. boundaryFacet(Vector3D point, BSPTree<Euclidean3D> node)Check if a point belongs to the boundary part of a node.PolyhedronsSetPolyhedronsSet. buildNew(BSPTree<Euclidean3D> tree)Build a region using the instance as a prototype.private SubHyperplane<Euclidean3D>PolyhedronsSet. recurseFirstIntersection(BSPTree<Euclidean3D> node, Vector3D point, Line line)Get the first sub-hyperplane crossed by a semi-infinite line.voidOutlineExtractor.BoundaryProjector. visitInternalNode(BSPTree<Euclidean3D> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidPolyhedronsSet.FacetsContributionVisitor. visitInternalNode(BSPTree<Euclidean3D> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidOutlineExtractor.BoundaryProjector. visitLeafNode(BSPTree<Euclidean3D> node)Visit a leaf BSP tree node node having a null sub-hyperplane.voidPolyhedronsSet.FacetsContributionVisitor. visitLeafNode(BSPTree<Euclidean3D> node)Visit a leaf BSP tree node node having a null sub-hyperplane.BSPTreeVisitor.OrderOutlineExtractor.BoundaryProjector. visitOrder(BSPTree<Euclidean3D> node)Determine the visit order for this node.BSPTreeVisitor.OrderPolyhedronsSet.FacetsContributionVisitor. visitOrder(BSPTree<Euclidean3D> node)Determine the visit order for this node.Constructors in org.apache.commons.math3.geometry.euclidean.threed with parameters of type BSPTree Constructor Description PolyhedronsSet(BSPTree<Euclidean3D> tree)Deprecated.as of 3.3, replaced withPolyhedronsSet(BSPTree, double)PolyhedronsSet(BSPTree<Euclidean3D> tree, double tolerance)Build a polyhedrons set from a BSP tree. -
Uses of BSPTree in org.apache.commons.math3.geometry.euclidean.twod
Fields in org.apache.commons.math3.geometry.euclidean.twod declared as BSPTree Modifier and Type Field Description private BSPTree<Euclidean2D>PolygonsSet.ConnectableSegment. endNodeNode whose intersection with current node defines end point.private BSPTree<Euclidean2D>PolygonsSet.ConnectableSegment. nodeNode containing segment.private BSPTree<Euclidean2D>PolygonsSet.Edge. nodeNode whose cut hyperplane contains this edge.private BSPTree<Euclidean2D>PolygonsSet.ConnectableSegment. startNodeNode whose intersection with current node defines start point.Methods in org.apache.commons.math3.geometry.euclidean.twod that return BSPTree Modifier and Type Method Description BSPTree<Euclidean2D>PolygonsSet.ConnectableSegment. getEndNode()Get the node whose intersection with current node defines end point.BSPTree<Euclidean2D>PolygonsSet.ConnectableSegment. getNode()Get the node containing segment.BSPTree<Euclidean2D>PolygonsSet.Edge. getNode()Get the node whose cut hyperplane contains this edge.BSPTree<Euclidean2D>PolygonsSet.ConnectableSegment. getStartNode()Get the node whose intersection with current node defines start point.private BSPTree<Euclidean2D>PolygonsSet.SegmentsBuilder. selectClosest(Vector2D point, java.lang.Iterable<BSPTree<Euclidean2D>> candidates)Select the node whose cut sub-hyperplane is closest to specified point.private static BSPTree<Euclidean2D>PolygonsSet. verticesToTree(double hyperplaneThickness, Vector2D... vertices)Build the BSP tree of a polygons set from a simple list of vertices.Methods in org.apache.commons.math3.geometry.euclidean.twod with parameters of type BSPTree Modifier and Type Method Description private voidPolygonsSet.SegmentsBuilder. addContribution(SubHyperplane<Euclidean2D> sub, BSPTree<Euclidean2D> node, java.lang.Iterable<BSPTree<Euclidean2D>> splitters, boolean reversed)Add the contribution of a boundary facet.PolygonsSetPolygonsSet. buildNew(BSPTree<Euclidean2D> tree)Build a region using the instance as a prototype.private static voidPolygonsSet. insertEdges(double hyperplaneThickness, BSPTree<Euclidean2D> node, java.util.List<PolygonsSet.Edge> edges)Recursively build a tree by inserting cut sub-hyperplanes.voidPolygonsSet.Edge. setNode(BSPTree<Euclidean2D> node)Set the node whose cut hyperplane contains this edge.voidPolygonsSet.SegmentsBuilder. visitInternalNode(BSPTree<Euclidean2D> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidPolygonsSet.SegmentsBuilder. visitLeafNode(BSPTree<Euclidean2D> node)Visit a leaf BSP tree node node having a null sub-hyperplane.BSPTreeVisitor.OrderPolygonsSet.SegmentsBuilder. visitOrder(BSPTree<Euclidean2D> node)Determine the visit order for this node.Method parameters in org.apache.commons.math3.geometry.euclidean.twod with type arguments of type BSPTree Modifier and Type Method Description private voidPolygonsSet.SegmentsBuilder. addContribution(SubHyperplane<Euclidean2D> sub, BSPTree<Euclidean2D> node, java.lang.Iterable<BSPTree<Euclidean2D>> splitters, boolean reversed)Add the contribution of a boundary facet.private BSPTree<Euclidean2D>PolygonsSet.SegmentsBuilder. selectClosest(Vector2D point, java.lang.Iterable<BSPTree<Euclidean2D>> candidates)Select the node whose cut sub-hyperplane is closest to specified point.Constructors in org.apache.commons.math3.geometry.euclidean.twod with parameters of type BSPTree Constructor Description ConnectableSegment(Vector2D start, Vector2D end, Line line, BSPTree<Euclidean2D> node, BSPTree<Euclidean2D> startNode, BSPTree<Euclidean2D> endNode)Build a segment.PolygonsSet(BSPTree<Euclidean2D> tree)Deprecated.as of 3.3, replaced withPolygonsSet(BSPTree, double)PolygonsSet(BSPTree<Euclidean2D> tree, double tolerance)Build a polygons set from a BSP tree. -
Uses of BSPTree in org.apache.commons.math3.geometry.partitioning
Fields in org.apache.commons.math3.geometry.partitioning declared as BSPTree Modifier and Type Field Description private BSPTree<S>BoundaryProjector. leafLeaf node closest to the test point.private BSPTree<S>BSPTree. minusTree at the minus side of the cut hyperplane.private BSPTree<S>BSPTree. parentParent tree.private BSPTree<S>BSPTree. plusTree at the plus side of the cut hyperplane.private BSPTree<S>AbstractRegion. treeInside/Outside BSP tree.Fields in org.apache.commons.math3.geometry.partitioning with type parameters of type BSPTree Modifier and Type Field Description private java.util.List<BSPTree<S>>NodesSet. listList of sub-hyperplanes.Methods in org.apache.commons.math3.geometry.partitioning that return BSPTree Modifier and Type Method Description BSPTree<S>BSPTree. copySelf()Copy the instance.BSPTree<S>BSPTree.VanishingCutHandler. fixNode(BSPTree<S> node)Fix a node with both vanished cut and children.BSPTree<S>RegionFactory.DifferenceMerger. fixNode(BSPTree<S> node)Fix a node with both vanished cut and children.BSPTree<S>RegionFactory.VanishingToLeaf. fixNode(BSPTree<S> node)Fix a node with both vanished cut and children.BSPTree<S>BSPTree. getCell(Point<S> point, double tolerance)Get the cell to which a point belongs.BSPTree<S>BSPTree. getCell(Vector<S> point)Deprecated.as of 3.3, replaced withgetCell(Point, double)BSPTree<S>BSPTree. getMinus()Get the tree on the minus side of the cut hyperplane.BSPTree<S>BSPTree. getParent()Get the parent node.BSPTree<S>BSPTree. getPlus()Get the tree on the plus side of the cut hyperplane.BSPTree<S>AbstractRegion. getTree(boolean includeBoundaryAttributes)Get the underlying BSP tree.BSPTree<S>Region. getTree(boolean includeBoundaryAttributes)Get the underlying BSP tree.BSPTree<S>BSPTree.LeafMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>BSPTree. merge(BSPTree<S> tree, BSPTree.LeafMerger<S> leafMerger)Merge a BSP tree with the instance.private BSPTree<S>BSPTree. merge(BSPTree<S> tree, BSPTree.LeafMerger<S> leafMerger, BSPTree<S> parentTree, boolean isPlusChild)Merge a BSP tree with the instance.BSPTree<S>RegionFactory.DifferenceMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>RegionFactory.IntersectionMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>RegionFactory.UnionMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>RegionFactory.XorMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>BSPTree. pruneAroundConvexCell(java.lang.Object cellAttribute, java.lang.Object otherLeafsAttributes, java.lang.Object internalAttributes)Prune a tree around a cell.private BSPTree<S>RegionFactory. recurseComplement(BSPTree<S> node)Recursively build the complement of a BSP tree.private BSPTree<S>RegionFactory. recurseComplement(BSPTree<S> node, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively build the complement of a BSP tree.private BSPTree<S>AbstractRegion. recurseTransform(BSPTree<S> node, Transform<S,T> transform, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively transform an inside/outside BSP-tree.private BSPTree<T>AbstractSubHyperplane. recurseTransform(BSPTree<T> node, Hyperplane<S> transformed, Transform<S,T> transform, java.util.Map<BSPTree<T>,BSPTree<T>> map)Recursively transform a BSP-tree from a sub-hyperplane.BSPTree<S>BSPTree. split(SubHyperplane<S> sub)Split a BSP tree by an external sub-hyperplane.Methods in org.apache.commons.math3.geometry.partitioning that return types with arguments of type BSPTree Modifier and Type Method Description java.util.List<BSPTree<S>>BSPTree. getCloseCuts(Point<S> point, double maxOffset)Get the cells whose cut sub-hyperplanes are close to the point.java.util.Iterator<BSPTree<S>>NodesSet. iterator()Methods in org.apache.commons.math3.geometry.partitioning with parameters of type BSPTree Modifier and Type Method Description voidNodesSet. add(BSPTree<S> node)Add a node if not already known.private java.util.List<Region<T>>BoundaryProjector. boundaryRegions(BSPTree<S> node)Extract the regions of the boundary on an internal node.abstract AbstractRegion<S,T>AbstractRegion. buildNew(BSPTree<S> newTree)Build a region using the instance as a prototype.Region<S>Region. buildNew(BSPTree<S> newTree)Build a region using the instance as a prototype.private voidCharacterization. characterize(BSPTree<S> node, SubHyperplane<S> sub, java.util.List<BSPTree<S>> splitters)Filter the parts of an hyperplane belonging to the boundary.protected Region.LocationAbstractRegion. checkPoint(BSPTree<S> node, Point<S> point)Check a point with respect to the region starting at a given node.protected Region.LocationAbstractRegion. checkPoint(BSPTree<S> node, Vector<S> point)Check a point with respect to the region starting at a given node.BSPTree<S>BSPTree.VanishingCutHandler. fixNode(BSPTree<S> node)Fix a node with both vanished cut and children.BSPTree<S>RegionFactory.DifferenceMerger. fixNode(BSPTree<S> node)Fix a node with both vanished cut and children.BSPTree<S>RegionFactory.VanishingToLeaf. fixNode(BSPTree<S> node)Fix a node with both vanished cut and children.private voidAbstractRegion. insertCuts(BSPTree<S> node, java.util.Collection<SubHyperplane<S>> boundary)Recursively build a tree by inserting cut sub-hyperplanes.voidBSPTree. insertInTree(BSPTree<S> parentTree, boolean isPlusChild)Deprecated.as of 3.4, replaced withinsertInTree(BSPTree, boolean, VanishingCutHandler)voidBSPTree. insertInTree(BSPTree<S> parentTree, boolean isPlusChild, BSPTree.VanishingCutHandler<S> vanishingHandler)Insert the instance into another tree.booleanAbstractRegion. isEmpty(BSPTree<S> node)Check if the sub-tree starting at a given node is empty.booleanRegion. isEmpty(BSPTree<S> node)Check if the sub-tree starting at a given node is empty.booleanAbstractRegion. isFull(BSPTree<S> node)Check if the sub-tree starting at a given node covers the full space.booleanRegion. isFull(BSPTree<S> node)Check if the sub-tree starting at a given node covers the full space.BSPTree<S>BSPTree.LeafMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>BSPTree. merge(BSPTree<S> tree, BSPTree.LeafMerger<S> leafMerger)Merge a BSP tree with the instance.private BSPTree<S>BSPTree. merge(BSPTree<S> tree, BSPTree.LeafMerger<S> leafMerger, BSPTree<S> parentTree, boolean isPlusChild)Merge a BSP tree with the instance.BSPTree<S>RegionFactory.DifferenceMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>RegionFactory.IntersectionMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>RegionFactory.UnionMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.BSPTree<S>RegionFactory.XorMerger. merge(BSPTree<S> leaf, BSPTree<S> tree, BSPTree<S> parentTree, boolean isPlusChild, boolean leafFromInstance)Merge a leaf node and a tree node.private BSPTree<S>RegionFactory. recurseComplement(BSPTree<S> node)Recursively build the complement of a BSP tree.private BSPTree<S>RegionFactory. recurseComplement(BSPTree<S> node, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively build the complement of a BSP tree.private SubHyperplane<S>AbstractRegion. recurseIntersection(BSPTree<S> node, SubHyperplane<S> sub)Recursively compute the parts of a sub-hyperplane that are contained in the region.voidInsideFinder. recurseSides(BSPTree<S> node, SubHyperplane<S> sub)Search recursively for inside leaf nodes on each side of the given hyperplane.private BSPTree<S>AbstractRegion. recurseTransform(BSPTree<S> node, Transform<S,T> transform, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively transform an inside/outside BSP-tree.private BSPTree<T>AbstractSubHyperplane. recurseTransform(BSPTree<T> node, Hyperplane<S> transformed, Transform<S,T> transform, java.util.Map<BSPTree<T>,BSPTree<T>> map)Recursively transform a BSP-tree from a sub-hyperplane.voidBoundaryBuilder. visitInternalNode(BSPTree<S> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidBoundaryProjector. visitInternalNode(BSPTree<S> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidBoundarySizeVisitor. visitInternalNode(BSPTree<S> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidBSPTreeVisitor. visitInternalNode(BSPTree<S> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidRegionFactory.NodesCleaner. visitInternalNode(BSPTree<S> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidBoundaryBuilder. visitLeafNode(BSPTree<S> node)Visit a leaf BSP tree node node having a null sub-hyperplane.voidBoundaryProjector. visitLeafNode(BSPTree<S> node)Visit a leaf BSP tree node node having a null sub-hyperplane.voidBoundarySizeVisitor. visitLeafNode(BSPTree<S> node)Visit a leaf BSP tree node node having a null sub-hyperplane.voidBSPTreeVisitor. visitLeafNode(BSPTree<S> node)Visit a leaf BSP tree node node having a null sub-hyperplane.voidRegionFactory.NodesCleaner. visitLeafNode(BSPTree<S> node)Visit a leaf BSP tree node node having a null sub-hyperplane.BSPTreeVisitor.OrderBoundaryBuilder. visitOrder(BSPTree<S> node)Determine the visit order for this node.BSPTreeVisitor.OrderBoundaryProjector. visitOrder(BSPTree<S> node)Determine the visit order for this node.BSPTreeVisitor.OrderBoundarySizeVisitor. visitOrder(BSPTree<S> node)Determine the visit order for this node.BSPTreeVisitor.OrderBSPTreeVisitor. visitOrder(BSPTree<S> node)Determine the visit order for this node.BSPTreeVisitor.OrderRegionFactory.NodesCleaner. visitOrder(BSPTree<S> node)Determine the visit order for this node.Method parameters in org.apache.commons.math3.geometry.partitioning with type arguments of type BSPTree Modifier and Type Method Description voidNodesSet. addAll(java.lang.Iterable<BSPTree<S>> iterator)Add nodes if they are not already known.private voidCharacterization. addInsideTouching(SubHyperplane<S> sub, java.util.List<BSPTree<S>> splitters)Add a part of the cut sub-hyperplane known to touch an inside cell.private voidCharacterization. addOutsideTouching(SubHyperplane<S> sub, java.util.List<BSPTree<S>> splitters)Add a part of the cut sub-hyperplane known to touch an outside cell.private voidCharacterization. characterize(BSPTree<S> node, SubHyperplane<S> sub, java.util.List<BSPTree<S>> splitters)Filter the parts of an hyperplane belonging to the boundary.private voidBSPTree. recurseCloseCuts(Point<S> point, double maxOffset, java.util.List<BSPTree<S>> close)Get the cells whose cut sub-hyperplanes are close to the point.private BSPTree<S>RegionFactory. recurseComplement(BSPTree<S> node, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively build the complement of a BSP tree.private BSPTree<S>RegionFactory. recurseComplement(BSPTree<S> node, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively build the complement of a BSP tree.private BSPTree<S>AbstractRegion. recurseTransform(BSPTree<S> node, Transform<S,T> transform, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively transform an inside/outside BSP-tree.private BSPTree<S>AbstractRegion. recurseTransform(BSPTree<S> node, Transform<S,T> transform, java.util.Map<BSPTree<S>,BSPTree<S>> map)Recursively transform an inside/outside BSP-tree.private BSPTree<T>AbstractSubHyperplane. recurseTransform(BSPTree<T> node, Hyperplane<S> transformed, Transform<S,T> transform, java.util.Map<BSPTree<T>,BSPTree<T>> map)Recursively transform a BSP-tree from a sub-hyperplane.private BSPTree<T>AbstractSubHyperplane. recurseTransform(BSPTree<T> node, Hyperplane<S> transformed, Transform<S,T> transform, java.util.Map<BSPTree<T>,BSPTree<T>> map)Recursively transform a BSP-tree from a sub-hyperplane.Constructors in org.apache.commons.math3.geometry.partitioning with parameters of type BSPTree Constructor Description AbstractRegion(BSPTree<S> tree, double tolerance)Build a region from an inside/outside BSP tree.BSPTree(SubHyperplane<S> cut, BSPTree<S> plus, BSPTree<S> minus, java.lang.Object attribute)Build a BSPTree from its underlying elements.Characterization(BSPTree<S> node, SubHyperplane<S> sub)Simple constructor. -
Uses of BSPTree in org.apache.commons.math3.geometry.spherical.oned
Fields in org.apache.commons.math3.geometry.spherical.oned declared as BSPTree Modifier and Type Field Description private BSPTree<Sphere1D>ArcsSet.SubArcsIterator. currentCurrent node.private BSPTree<Sphere1D>ArcsSet.SubArcsIterator. firstStartStart of the first arc.Methods in org.apache.commons.math3.geometry.spherical.oned that return BSPTree Modifier and Type Method Description private static BSPTree<Sphere1D>ArcsSet. buildTree(double lower, double upper, double tolerance)Build an inside/outside tree representing a single arc.private BSPTree<Sphere1D>ArcsSet. childAfter(BSPTree<Sphere1D> node)Find the child node just after an internal node.private BSPTree<Sphere1D>ArcsSet. childBefore(BSPTree<Sphere1D> node)Find the child node just before an internal node.private BSPTree<Sphere1D>ArcsSet. getFirstArcStart()Get the node corresponding to the first arc start.private BSPTree<Sphere1D>ArcsSet. getFirstLeaf(BSPTree<Sphere1D> root)Get the first leaf node of a tree.private BSPTree<Sphere1D>ArcsSet. getLastLeaf(BSPTree<Sphere1D> root)Get the last leaf node of a tree.private BSPTree<Sphere1D>ArcsSet. leafAfter(BSPTree<Sphere1D> node)Find the leaf node just after an internal node.private BSPTree<Sphere1D>ArcsSet. leafBefore(BSPTree<Sphere1D> node)Find the leaf node just before an internal node.private BSPTree<Sphere1D>ArcsSet. nextInternalNode(BSPTree<Sphere1D> node)Get the next internal node.private BSPTree<Sphere1D>ArcsSet. previousInternalNode(BSPTree<Sphere1D> node)Get the previous internal node.Methods in org.apache.commons.math3.geometry.spherical.oned with parameters of type BSPTree Modifier and Type Method Description private voidArcsSet. addArcLimit(BSPTree<Sphere1D> tree, double alpha, boolean isStart)Add an arc limit to a BSP tree under construction.ArcsSetArcsSet. buildNew(BSPTree<Sphere1D> tree)Build a region using the instance as a prototype.private BSPTree<Sphere1D>ArcsSet. childAfter(BSPTree<Sphere1D> node)Find the child node just after an internal node.private BSPTree<Sphere1D>ArcsSet. childBefore(BSPTree<Sphere1D> node)Find the child node just before an internal node.private doubleArcsSet. getAngle(BSPTree<Sphere1D> node)Get the limit angle of an internal node.private BSPTree<Sphere1D>ArcsSet. getFirstLeaf(BSPTree<Sphere1D> root)Get the first leaf node of a tree.private BSPTree<Sphere1D>ArcsSet. getLastLeaf(BSPTree<Sphere1D> root)Get the last leaf node of a tree.private booleanArcsSet. isAfterParent(BSPTree<Sphere1D> node)Check if a node is the child after its parent in trigonometric order.private booleanArcsSet. isArcEnd(BSPTree<Sphere1D> node)Check if an internal node corresponds to the end angle of an arc.private booleanArcsSet. isArcStart(BSPTree<Sphere1D> node)Check if an internal node corresponds to the start angle of an arc.private booleanArcsSet. isBeforeParent(BSPTree<Sphere1D> node)Check if a node is the child before its parent in trigonometric order.private booleanArcsSet. isDirect(BSPTree<Sphere1D> node)Check if an internal node has a direct limit angle.private BSPTree<Sphere1D>ArcsSet. leafAfter(BSPTree<Sphere1D> node)Find the leaf node just after an internal node.private BSPTree<Sphere1D>ArcsSet. leafBefore(BSPTree<Sphere1D> node)Find the leaf node just before an internal node.private BSPTree<Sphere1D>ArcsSet. nextInternalNode(BSPTree<Sphere1D> node)Get the next internal node.private BSPTree<Sphere1D>ArcsSet. previousInternalNode(BSPTree<Sphere1D> node)Get the previous internal node.Constructors in org.apache.commons.math3.geometry.spherical.oned with parameters of type BSPTree Constructor Description ArcsSet(BSPTree<Sphere1D> tree, double tolerance)Build an arcs set from an inside/outside BSP tree. -
Uses of BSPTree in org.apache.commons.math3.geometry.spherical.twod
Fields in org.apache.commons.math3.geometry.spherical.twod declared as BSPTree Modifier and Type Field Description private BSPTree<Sphere2D>EdgesBuilder. rootRoot of the tree.Fields in org.apache.commons.math3.geometry.spherical.twod with type parameters of type BSPTree Modifier and Type Field Description private java.util.Map<Edge,BSPTree<Sphere2D>>EdgesBuilder. edgeToNodeBuilt edges and their associated nodes.private java.util.Map<BSPTree<Sphere2D>,java.util.List<Edge>>EdgesBuilder. nodeToEdgesListReversed map.Methods in org.apache.commons.math3.geometry.spherical.twod that return BSPTree Modifier and Type Method Description private static BSPTree<Sphere2D>SphericalPolygonsSet. verticesToTree(double hyperplaneThickness, S2Point... vertices)Build the BSP tree of a polygons set from a simple list of vertices.Methods in org.apache.commons.math3.geometry.spherical.twod with parameters of type BSPTree Modifier and Type Method Description private voidEdgesBuilder. addContribution(SubCircle sub, boolean reversed, BSPTree<Sphere2D> node)Add the contribution of a boundary edge.SphericalPolygonsSetSphericalPolygonsSet. buildNew(BSPTree<Sphere2D> tree)Build a region using the instance as a prototype.private static voidSphericalPolygonsSet. insertEdges(double hyperplaneThickness, BSPTree<Sphere2D> node, java.util.List<Edge> edges)Recursively build a tree by inserting cut sub-hyperplanes.voidEdgesBuilder. visitInternalNode(BSPTree<Sphere2D> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidPropertiesComputer. visitInternalNode(BSPTree<Sphere2D> node)Visit a BSP tree node node having a non-null sub-hyperplane.voidEdgesBuilder. visitLeafNode(BSPTree<Sphere2D> node)Visit a leaf BSP tree node node having a null sub-hyperplane.voidPropertiesComputer. visitLeafNode(BSPTree<Sphere2D> node)Visit a leaf BSP tree node node having a null sub-hyperplane.BSPTreeVisitor.OrderEdgesBuilder. visitOrder(BSPTree<Sphere2D> node)Determine the visit order for this node.BSPTreeVisitor.OrderPropertiesComputer. visitOrder(BSPTree<Sphere2D> node)Determine the visit order for this node.Constructors in org.apache.commons.math3.geometry.spherical.twod with parameters of type BSPTree Constructor Description EdgesBuilder(BSPTree<Sphere2D> root, double tolerance)Simple constructor.SphericalPolygonsSet(BSPTree<Sphere2D> tree, double tolerance)Build a polygons set from a BSP tree.
-