addCurve method
Creates a {@link SegmentString} for a coordinate list which is a raw offset curve,
and adds it to the list of buffer curves.
The SegmentString is tagged with a Label giving the topology of the curve.
The curve may be oriented in either direction.
If the curve is oriented CW, the locations will be:
Left: Location.EXTERIOR
Right: Location.INTERIOR
Implementation
void addCurve(List<Coordinate>? coord, int leftLoc, int rightLoc) {
// don't add null or trivial curves
if (coord == null || coord.length < 2) return;
// add the edge for a coordinate list which is a raw offset curve
SegmentString e = new NodedSegmentString(
coord, new Label.args4(0, Location.BOUNDARY, leftLoc, rightLoc));
curveList.add(e);
}