public final class AddEdgeResult
extends java.lang.Object
Subdivision.
Immutable class containing the result of the Subdivision.addEdge(org.kynosarges.tektosyne.geometry.PointD, org.kynosarges.tektosyne.geometry.PointD) method
of the Subdivision class.| Modifier and Type | Field and Description |
|---|---|
SubdivisionEdge |
addedEdge
One of the two added
SubdivisionEdge instances, if any. |
int |
addedFaceKey
The
SubdivisionFace.key() of the added SubdivisionFace, if any. |
int |
changedFaceKey
The
SubdivisionFace.key() of the changed SubdivisionFace, if any. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEdgeAdded()
Indicates whether an edge was added to the
Subdivision. |
public final SubdivisionEdge addedEdge
SubdivisionEdge instances, if any.
Set to a valid instance if Subdivision.addEdge(org.kynosarges.tektosyne.geometry.PointD, org.kynosarges.tektosyne.geometry.PointD) succeeded, else to null.
A valid SubdivisionEdge is directed from the specified start to end coordinates.public final int addedFaceKey
SubdivisionFace.key() of the added SubdivisionFace, if any.
Set to a non-negative value if Subdivision.addEdge(org.kynosarges.tektosyne.geometry.PointD, org.kynosarges.tektosyne.geometry.PointD) succeeded and a
SubdivisionFace was added along with addedEdge, else to a negative value.public final int changedFaceKey
SubdivisionFace.key() of the changed SubdivisionFace, if any.
Set to a non-negative value if Subdivision.addEdge(org.kynosarges.tektosyne.geometry.PointD, org.kynosarges.tektosyne.geometry.PointD) succeeded, else to a negative value.public boolean isEdgeAdded()
Subdivision.true if changedFaceKey is equal
to or greater than zero, else false.