libigl

How to perform Boolean operation on thin surface using libigl?

为君一笑 提交于 2021-02-19 08:17:11
问题 I am currently working on libigl, and trying to grab the part of the a surface which locates inside another body. However, it seems than libigl only works with closed bodies: Here is the code which works for closed bodies. VA , VF is a triangular prism and VB , FB is a tetrahedron: #include <igl/readOFF.h> //#define IGL_NO_CORK //#undef IGL_STATIC_LIBRARY #include <igl/copyleft/cgal/mesh_boolean.h> #include <igl/viewer/Viewer.h> #include <Eigen/Core> #include <iostream> Eigen::MatrixXd VA,VB