public class FastNodingValidator
extends java.lang.Object
SegmentString
s is correctly noded.
Indexing is used to improve performance.
This class assumes that at least one round of noding has already been performed
(which may still leave intersections, due to rounding issues).
Does NOT check a-b-a collapse situations.
Also does not check for endpt-interior vertex intersections.
This should not be a problem, since the noders should be
able to compute intersections between vertices correctly.
User may either test the valid condition, or request that a
TopologyException
be thrown.Constructor and Description |
---|
FastNodingValidator(java.util.Collection segStrings) |
Modifier and Type | Method and Description |
---|---|
void |
checkValid()
Checks for an intersection and throws
a TopologyException if one is found.
|
java.lang.String |
getErrorMessage()
Returns an error message indicating the segments containing
the intersection.
|
boolean |
isValid()
Checks for an intersection and
reports if one is found.
|
public boolean isValid()
public java.lang.String getErrorMessage()
public void checkValid()
TopologyException
- if an intersection is found