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.41k stars 142 forks source link

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

Closed lepsa closed 10 months ago

lepsa commented 11 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 10 months ago

Thank you!