SnapRoundingNoder instead.@Deprecated public class MCIndexSnapRounder extends Object implements Noder
SegmentStrings.
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
SegmentStrings. |
void |
computeVertexSnaps(Collection edges)
Deprecated.
Snaps segments to all vertices.
|
Collection |
getNodedSubstrings()
Deprecated.
Returns a
Collection of fully noded SegmentStrings. |
public MCIndexSnapRounder(PrecisionModel pm)
public Collection getNodedSubstrings()
NoderCollection of fully noded SegmentStrings.
The SegmentStrings have the same context as their parent.getNodedSubstrings in interface Noderpublic void computeNodes(Collection inputSegmentStrings)
NoderSegmentStrings.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.computeNodes in interface NoderinputSegmentStrings - a collection of SegmentStrings to nodepublic void computeVertexSnaps(Collection edges)
edges - the list of segment strings to snap togetherCopyright © 2024. All rights reserved.