Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.32k stars 140 forks source link

Adding checks when looking for loops to handle NaNs. #440

Closed lepsa closed 1 year ago

lepsa commented 1 year ago

Updating some OpenSCAD functions that have the potential to return NaN or (+-)Infinity have been given checks that remove these troublesome values and clamp them to "reasonable" values so that the rest of the processing can continue without processing these troublesome values.

This addresses https://github.com/Haskell-Things/ImplicitCAD/issues/373