Ultimaker / CuraEngine

Powerful, fast and robust engine for converting 3D models into g-code instructions for 3D printers. It is part of the larger open source project Cura.
https://ultimaker.com/en/products/cura-software
GNU Affero General Public License v3.0
1.66k stars 874 forks source link

[CURA-11444] Use 'wagyu' to prevent slicing crashes #2030

Closed rburema closed 4 months ago

rburema commented 4 months ago

NOTE: The same failing tests are also happening on main.


Input polygons into Arachne weren't guaranteed to be 'not nearly self intersecting', but it needed that requirement. Use mapbox/wagyu to make the polygons going in conform.

Has a reinterpret-cast/move instead of copying the polygons, which is needed, because otherwise either the mapbox point type (which assumes small x,y) or 'our' ClipperLib:IntPoint type (which uses capital X,Y) would have to change all throughout either the wagyu library or our codebase respectively.