ai4ce / pyP2Mesh

python wrapper for finding a point's closest point on a triangle mesh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyP2Mesh

Overview

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.

Version

0.0.1

Installation

  1. prepare your environment:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
  1. Clone libigl.

  2. Change libigl_incs in setup.py accordingly

  3. compile the project:

python setup.py build_ext --inplace
  1. 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.

Contact

Chen Feng

Feel free to email any bugs or suggestions to help us improve the code. Thank you!

About

python wrapper for finding a point's closest point on a triangle mesh


Languages

Language:Python 84.4%Language:C++ 15.6%