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 to maxChamferTurnDegrees.
  • 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 setting maxChamferTurnDegrees < minArcDegrees and allowSharpestCorners to true.

Defined in

Last Updated: 05 May, 2024