GH_CurveOffset

public class GH_CurveOffset
Utility class for computing curve offsets a la Grasshopper.

Constructors

GH_CurveOffset

#
public GH_CurveOffset(Curve curve, Plane offsetPlane)
Create a new instance of the Curve offsetter.
curve (Curve)Curve to offset.
offsetPlane (Plane)Plane for offset. The curve will be projected onto this plane.

GH_CurveOffset

#
public GH_CurveOffset(IEnumerable<Curve> curves, Plane offsetPlane)
Create a new instance of the Curve offsetter.
curves (IEnumerable<Curve>)Curves to offset.
offsetPlane (Plane)Plane for offset. The curve will be projected onto this plane.

Properties

OffsetPlane

#
public Plane OffsetPlane { get; }
Gets the offset plane.

Methods

Offset

#
public List<Curve> Offset(double distance, GH_CurveOffsetCorner corner)
Offset the curve(s) and apply all trimming and joining logic.
distance (double)Offset distance. Note that distance is measured to the right of open curves and outwards for closed curves.
corner (GH_CurveOffsetCorner)Corner type to use for G0 offsets.
List of offset results.

OffsetSamples

#
public List<Point3dList> OffsetSamples(double distance)
Utility method for getting all offset samples.
distance (double)Offset distance.
A polyline containing all sampler per curve segment.