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

Issue #450. Making torus and ellipsoid primitive objects. #470

Closed lepsa closed 7 months ago

lepsa commented 7 months ago

Fix for https://github.com/Haskell-Things/ImplicitCAD/issues/450

Switching the definitions of torus and ellipsoid to be SymbolicObj3 primitives rather than being implictly defined. The maths functions haven't changed, only been moved around.

One test was updated as some of the STL values changed, but to the eye it looks similar, and a random check of values indicated that they were small.

sorki commented 7 months ago

Thank you!