This project implemented the Mean Value Coordinates in 3D algorithm in
c++
Assuming you have cloned this project in your home directory d:\mvc3d
, we will next compile this project with cmake
.
$ cd d:\mvc3d
$ mkdir bin
$ cd bin
$ cmake ..
Once you have completed these steps, you can find the .sln
file in the \bin
folder, which is the project file that is successfully compiled for you.
By compiling the project file, you can find the generated mvc3d.exe
file in the debug
or release
folder. To run mvc3d.exe
, the command line syntax is
$ mvc3d model_path x y z output_path
- model_path: the current version only supports reading
.off
triangular mesh models. Other formats will be supported as soon. - x & y & z: [x,y,z] is the point to calculate the barycentric coordinates.
- output_path: the calculated barycentric coordinates will be output to this file in text format.
If you encounter any problems in the process of using this project, please do not hesitate to contact me or submit your problem to issues. Thanks for using.