You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if I create a ConvexPolygon I use from_convex_polyline, however sometimes this will remove some points. Give option to not remove the points (eg. default constructor or simpler constructor).
The text was updated successfully, but these errors were encountered:
I too have this issue. I would suggest a change to the epsilon used in from_convex_polyline making it much smaller:
let eps = 2.0*crate::math::DEFAULT_EPSILON;
It would be nice to have the tolerance/epsilon as a parameter, in which case it could be disabled by making it zero. I bet that change would be quite disruptive though.
Related to this matter, here are also some unit tests I've added to my local version of parry2d (convex_polygon.rs):
Right now if I create a
ConvexPolygon
I usefrom_convex_polyline
, however sometimes this will remove some points. Give option to not remove the points (eg. default constructor or simpler constructor).The text was updated successfully, but these errors were encountered: