Elements/src/Geometry/Curve.cs
/// <summary>
/// Create a polyline through a set of points along the curve.
/// </summary>
/// <param name="divisions">The number of divisions of the curve.</param>
/// <returns>A polyline.</returns>
Create a polyline through a set of points along the curve.
Create a polyline through a set of points along the curve .
public virtual Polyline ToPolyline(int divisions = 10)
        {
            var pts = new List<Vector3>(divisions + 1);
            var div = 1.0 / (double)divisions;
            for (var t = 0.0; t <= 1.0; t += div)
            {
                pts.Add(PointAt(t));
            }
            return new Polyline(pts);
        }
public virtual Polyline ToPolyline ( int divisions = 10 ) { var pts = new List < Vector3 > ( divisions + 1 ) ; var div = 1.0 / ( double ) divisions ; for ( var t = 0.0 ; t <= 1.0 ; t += div ) { pts . Add ( PointAt ( t ) ) ; } return new Polyline ( pts ) ; }
Create a polyline through a set of points along the curve.
Create a polyline through a set of points along the curve .
None
divisions
int
The number of divisions of the curve.
The number of divisions of the curve .