Class OldOffsetCurveBuilder
Computes the raw offset curve for a single Geometry component (ring, line or point).
Inherited Members
Namespace: NetTopologySuite.Operation.Buffer
Assembly: NetTopologySuite.dll
Syntax
[Obsolete]
public class OldOffsetCurveBuilder
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
| Improve this Doc View SourceOldOffsetCurveBuilder(PrecisionModel, BufferParameters)
Declaration
public OldOffsetCurveBuilder(PrecisionModel precisionModel, BufferParameters bufParams)
Parameters
Type | Name | Description |
---|---|---|
PrecisionModel | precisionModel | |
BufferParameters | bufParams |
Methods
| Improve this Doc View SourceGetLineCurve(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).
Declaration
public IList<Coordinate[]> GetLineCurve(Coordinate[] inputPts, double distance)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | inputPts | |
Double | distance |
Returns
Type | Description |
---|---|
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.
Declaration
public IList<Coordinate[]> GetRingCurve(Coordinate[] inputPts, Position side, double distance)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | inputPts | |
Position | side | |
Double | distance |
Returns
Type | Description |
---|---|
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.
Declaration
[Obsolete("Use GetRingCurve(Coordinate[], Geometries.Position, double)")]
public IList<Coordinate[]> GetRingCurve(Coordinate[] inputPts, Positions side, double distance)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | inputPts | |
Positions | side | |
Double | distance |
Returns
Type | Description |
---|---|
IList<Coordinate[]> | a List of Coordinate[] |