This is the python3 wrapper for projecting a set of points onto a mesh, using libigl.
Currently it is tested under Windows10(VC2017, x64), and python3.6 in Anaconda3.
0.0.1
- prepare your environment:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
-
Clone libigl.
-
Change libigl_incs in setup.py accordingly
-
compile the project:
python setup.py build_ext --inplace
- Enjoy!
python demo.py
This will generate a bunny_p2mesh.vtk file, which visualizes the projection using vtk file. VTK file can be viewed using ParaView.
Chen Feng
Feel free to email any bugs or suggestions to help us improve the code. Thank you!