SnapRoundingNoder
instead.@Deprecated public class MCIndexSnapRounder extends Object implements Noder
SegmentString
s.
Implements the Snap Rounding technique described in
papers by Hobby, Guibas & Marimont, and Goodrich et al.
Snap Rounding assumes that all vertices lie on a uniform grid;
hence the precision model of the input must be fixed precision,
and all the input vertices must be rounded to that precision.
This implementation uses a monotone chains and a spatial index to speed up the intersection tests.
Constructor and Description |
---|
MCIndexSnapRounder(PrecisionModel pm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
computeNodes(Collection inputSegmentStrings)
Deprecated.
Computes the noding for a collection of
SegmentString s. |
void |
computeVertexSnaps(Collection edges)
Deprecated.
Snaps segments to all vertices.
|
Collection |
getNodedSubstrings()
Deprecated.
Returns a
Collection of fully noded SegmentString s. |
public MCIndexSnapRounder(PrecisionModel pm)
public Collection getNodedSubstrings()
Noder
Collection
of fully noded SegmentString
s.
The SegmentStrings have the same context as their parent.getNodedSubstrings
in interface Noder
public void computeNodes(Collection inputSegmentStrings)
Noder
SegmentString
s.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.computeNodes
in interface Noder
inputSegmentStrings
- a collection of SegmentString
s to nodepublic void computeVertexSnaps(Collection edges)
edges
- the list of segment strings to snap togetherCopyright © 2022. All rights reserved.