Self collision detection for triangles meshes. Implementation in C++, uses Eigen and libigl libraries.
To use:
- Create build directory (
mkdir build
) cd build/
- Run cmake on project (
cmake ..
) - Make project (
make
) - Place object file into
meshes/
directory. - Inside build folder, run
./collision_bin FILE_NAME.EXT
Notes
- Currently only supports .off and .ply file types. Check the available
igl::readEXT()
methods to add support for different file types. Add togetTriangleMesh()
method inmain.cpp
- Toggle the bool
VISUALIZATION
at top ofmain.cpp
to show/hide object and collision results - Make sure CMake can find libigl on your machine. Inside the
cmake/FindLIBIGL.cmake
, include the path to your local copy of libigl