FreeCAD: master 6bf27e0a

Author Committer Branch Timestamp Parent
chennes wwmayer master 2021-03-12 20:51:20 master f55c46cc
Changeset [OpenSCAD] Reimplement surface() to match OpenSCAD

The original implementation of the surface() function used a simple
B-spline representation for the surface, which generated degenerate
surface with several of OpenSCAD's demo input files. This commit
modifies the algorithm to generate a discrete surface identical to the
one generated within OpenSCAD itself. It also adds several units tests
to identify future regressions.

Note that PNG input is not yet supported for the surface() function.
mod - src/Mod/OpenSCAD/CMakeLists.txt Diff File
mod - src/Mod/OpenSCAD/OpenSCADFeatures.py Diff File
mod - src/Mod/OpenSCAD/OpenSCADTest/app/test_importCSG.py Diff File
add - src/Mod/OpenSCAD/OpenSCADTest/data/Surface.dat Diff File
add - src/Mod/OpenSCAD/OpenSCADTest/data/Surface.png Diff File
add - src/Mod/OpenSCAD/OpenSCADTest/data/Surface2.dat Diff File