allowSharpestCorners
allowSharpestCorners: boolean = false
Whether to remove the internal turn angle upper bound for sharp corner construction.
- By default, a sharp corner is not created at a joint when the turn angle is too large, so as to avoid offsets whose
ranges blow up. Internally, this is implemented by applying an upper bound of 120 degrees to
maxChamferTurnDegrees
. - When
allowSharpestCorners
is true, this internal upper bound is removed, allowing sharp corners for turn angles up tomaxChamferTurnDegrees
. - Thus, if you know your input turn angles are no greater than
maxChamferTurnDegrees
, you can create an offset with sharp corners at each joint by settingmaxChamferTurnDegrees < minArcDegrees
andallowSharpestCorners
to true.
Defined in
- curve/OffsetOptions.ts Line 45
Last Updated: 28 October, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.