Class OldOffsetCurveBuilder
- Namespace
- NetTopologySuite.Operation.Buffer
- Assembly
- NetTopologySuite.dll
Computes the raw offset curve for a single Geometry component (ring, line or point).
[Obsolete]
public class OldOffsetCurveBuilder
- Inheritance
-
OldOffsetCurveBuilder
- Inherited Members
Remarks
A raw offset curve line is not noded - it may contain self-intersections (and usually will). The final buffer polygon is computed by forming a topological graph of all the noded raw curves and tracing outside contours. The points in the raw curve are rounded to the required precision model.
Constructors
OldOffsetCurveBuilder(PrecisionModel, BufferParameters)
public OldOffsetCurveBuilder(PrecisionModel precisionModel, BufferParameters bufParams)
Parameters
precisionModel
PrecisionModelbufParams
BufferParameters
Methods
GetLineCurve(Coordinate[], double)
This method handles single points as well as lines. Lines are assumed to not be closed (the function will not fail for closed lines, but will generate superfluous line caps).
public IList<Coordinate[]> GetLineCurve(Coordinate[] inputPts, double distance)
Parameters
inputPts
Coordinate[]distance
double
Returns
- IList<Coordinate[]>
a List of Coordinate[]
GetRingCurve(Coordinate[], Position, double)
This method handles the degenerate cases of single points and lines, as well as rings.
public IList<Coordinate[]> GetRingCurve(Coordinate[] inputPts, Position side, double distance)
Parameters
inputPts
Coordinate[]side
Positiondistance
double
Returns
- IList<Coordinate[]>
a List of Coordinate[]
GetRingCurve(Coordinate[], Positions, double)
This method handles the degenerate cases of single points and lines, as well as rings.
[Obsolete("Use GetRingCurve(Coordinate[], Geometries.Position, double)")]
public IList<Coordinate[]> GetRingCurve(Coordinate[] inputPts, Positions side, double distance)
Parameters
inputPts
Coordinate[]side
Positionsdistance
double
Returns
- IList<Coordinate[]>
a List of Coordinate[]