OffsetOptions Class
Options for offsetting a curve, used in offset construction methods such as constructOffsetXY, constructPolygonWireXYOffset and Region.Ops.constructCurveXYOffset.
Methods
Name | Description | |
---|---|---|
constructor(offsetDistanceOrOptions: number | JointOptions, strokeOptions?: StrokeOptions): OffsetOptions | Options that are provided are captured. | |
clone(): OffsetOptions | Return a deep clone. | |
create(offsetDistanceOrOptions: number | JointOptions | OffsetOptions): OffsetOptions Static | Convert variant input into OffsetOptions. | |
getOffsetDistance(offsetDistanceOrOptions: number | JointOptions | OffsetOptions): number Static | Convert variant input into offset distance |
Properties
Name | Type | Description | |
---|---|---|---|
allowSharpestCorners Accessor | boolean | ||
jointOptions | JointOptions | Options for offsetting and joining CurvePrimitives | |
leftOffsetDistance Accessor | number | ||
maxChamferTurnDegrees Accessor | number | ||
minArcDegrees Accessor | number | ||
preserveEllipticalArcs Accessor | boolean | ||
strokeOptions | StrokeOptions | Options for generating a B-spline curve offset |
Defined in
- curve/OffsetOptions.ts Line 114
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.