Method FromPolyline
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
FromPolyline(GeoPolyline3)
Builds the spline of degree one that runs along a polyline.
public static GeoSpline3 FromPolyline(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3The polyline.
Returns
- GeoSpline3
The spline, whose control points are the vertices, over [0, 1] with each vertex at the share of the polyline's length that comes before it.
Remarks
Nothing is lost: the spline is the polyline. A polyline (0, 0, 0), (100, 0, 0), (100, 50, 0) of length 150 gives the knots 0, 0, 2/3, 1, 1.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
- ArgumentException
Thrown when a vertex has a coordinate that is not a finite number.