GH_CurveOffset

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

Constructors

GH_CurveOffset

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

GH_CurveOffset

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

Properties

OffsetPlane

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

Methods

Offset

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

OffsetSamples

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