DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="2.1.0-beta7020" />

 PolyCurve

public class PolyCurve : Curve
public int NumberOfCurves { get; }

Number of curves of the polycurve

public static PolyCurve ByJoinedCurves(IEnumerable<Curve> curves, double joinTolerance = 0.001)

Make PolyCurve by joining curves. Flips curve as needed for connectivity. Choose a preferred join tolerance between 1e-6 and 1e-3 units.

public static PolyCurve ByPoints(IEnumerable<Point> points, bool connectLastToFirst = false)

Make PolyCurve by connecting points. Set the 'connectLastToFirst' input to true to close the PolyCurve.

public static PolyCurve ByThickeningCurve(Curve curve, double thickness, Vector nor)

Make PolyCurve by thickening a curve.

public Plane BasePlane()

Returns plane of planar polycurve

Close polycurve by line connecting start and end points

public PolyCurve CloseWithLineAndTangentArcs(double radiusAtStart = 1, double radiusAtEnd = 1)

Close polycurve by tangent chain of arc, line, and arc

public Curve CurveAtIndex(int index = 0, bool endOrStart = false)

Returns curve of the polycurve by index

public Curve[] Curves()

Returns curves of the polycurve

public PolyCurve ExtendWithArc(double length, double radius, bool endOrStart)

Extends polycurve by tangent arc

public PolyCurve ExtendWithEllipse(double length, double radius1, double radius2, double endEllipseParameter, bool endOrStart)

Extends polycurve by tangent ellipse

public PolyCurve Fillet(double radius = 1, bool rightSide = true)

Fillet polycurve in its plane.

public Curve Offset(double signedDistance, bool extendCircular)

Offset polycurve in its plane.