-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to specify miter limit and arc tolerance for polypath offsetting #29758
Conversation
Is that only for graphics, or can I obtain the offset path as Path2D or Vector2Ds? Just curious. |
@Zireael07 the result is always an array of actual |
|
Removed It's possible to configure arc tolerance when using The above inconvenience can be remedied by including |
These parameters are added as default and reflect the defaults in ClipperOffset which is used internally (the only parameters missing). It's only possible to configure arc tolerance for `offset_polygon_2d` and not for `offset_polyline_2d` method as the latter requires binding more than 5 arguments to avoid engine binary size bloat. The workaround to this is to offset the polyline as usual which would produce polygons, and then use `offset_polygon_2d` method on the result.
Closing, see #36369 which should solve all mentioned limitations. |
Enhances #28987.
Closes #29886.
Recently I've been thinking that exposing miter limit and arc tolerance parameters for polygon/polyline inflating/deflating would be useful. I questioned whether it's reasonable to add those until this question/request was raised.
These parameters are added as default and reflect the defaults in
ClipperOffset
which is used internally (the only parameters which were missing).