| Modifier and Type | Field and Description |
|---|---|
| private final Map | edgeToNode
Built edges and their associated nodes. |
| private final Map | nodeToEdgesList
Reversed map. |
| private final BSPTree | root
Root of the tree. |
| private final double | tolerance
Tolerance below which points are consider to be identical. |
| Access | Constructor and Description |
|---|---|
| pack-priv | EdgesBuilder(final BSPTree<Sphere2D>
tree root root, final double below which points are consider to be identical tolerance)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | addContribution(final SubCircle
boundary facet sub, final boolean if true, the facet has the inside on its plus side reversed, final BSPTree<Sphere2D> node to which the edge belongs node)Add the contribution of a boundary edge. |
| public List | |
| private Edge | Returns: other edge, starting where the previous one ends (they have not been connected yet)edge to be continued previous)Get the edge that should naturally follow another one. |
| public void | visitInternalNode(final BSPTree<Sphere2D>
BSP node guaranteed to have a non null cut sub-hyperplane node)Implements org. Visit a BSP tree node node having a non-null sub-hyperplane. |
| public void | visitLeafNode(final BSPTree<Sphere2D>
leaf BSP node having a null sub-hyperplane node)Implements org. Visit a leaf BSP tree node node having a null sub-hyperplane. |
| public BSPTreeVisitor. | visitOrder(final BSPTree<Sphere2D>
BSP node guaranteed to have a non null cut sub-hyperplane node)Implements org. Determine the visit order for this node. |
| edgeToNode | back to summary |
|---|---|
| private final Map<Edge, BSPTree<Sphere2D>> edgeToNode Built edges and their associated nodes. | |
| nodeToEdgesList | back to summary |
|---|---|
| private final Map<BSPTree<Sphere2D>, List<Edge>> nodeToEdgesList Reversed map. | |
| root | back to summary |
|---|---|
| private final BSPTree<Sphere2D> root Root of the tree. | |
| tolerance | back to summary |
|---|---|
| private final double tolerance Tolerance below which points are consider to be identical. | |
| EdgesBuilder | back to summary |
|---|---|
| pack-priv EdgesBuilder(final BSPTree<Sphere2D> root, final double tolerance) Simple constructor. | |
| addContribution | back to summary |
|---|---|
| private void addContribution(final SubCircle sub, final boolean reversed, final BSPTree<Sphere2D> node) Add the contribution of a boundary edge. | |
| getEdges | back to summary |
|---|---|
| public List Get the boundary edges.
| |
| getFollowingEdge | back to summary |
|---|---|
| private Edge getFollowingEdge(final Edge previous) throws MathIllegalStateException Get the edge that should naturally follow another one.
| |
| visitInternalNode | back to summary |
|---|---|
| public void visitInternalNode(final BSPTree<Sphere2D> node) Implements org. Doc from org. Visit a BSP tree node node having a non-null sub-hyperplane. It is guaranteed that this method will be called after | |
| visitLeafNode | back to summary |
|---|---|
| public void visitLeafNode(final BSPTree<Sphere2D> node) Implements org. Doc from org. Visit a leaf BSP tree node node having a null sub-hyperplane. | |
| visitOrder | back to summary |
|---|---|
| public BSPTreeVisitor. Implements org. Doc from org. Determine the visit order for this node. Before attempting to visit an internal node, this method is
called to determine the desired ordering of the visit. It is
guaranteed that this method will be called before
| |