Python wrapper to SDFGen
Install from source
pip install .Pybind11 for compiling the C++ source and NumPy.
A script and an example test mesh can be found in examples/.
cd examples
python PySDFGen_example.py ./data/cuboids.off ./data/cuboids.vtkIt will compute the SDF for the triangle mesh cuboids.off and save it in the file cuboids.vtk. The legacy VTK file format is used. The resulting SDF can be visualized with paraview.