#include #include #include //#include #include #include Eigen::MatrixXd V1,V2,V; Eigen::MatrixXi F1,F2,F; int main(int argc, char *argv[]) { // Load two meshes igl::readOFF(TUTORIAL_SHARED_PATH "/planexy.off", V1, F1); igl::readOFF(TUTORIAL_SHARED_PATH "/cow.off", V2, F2); // Combine into one mesh (will produce self-intersections) igl::combine({V1,V2},{F1,F2}, V,F); // Plot the mesh igl::opengl::glfw::Viewer viewer; viewer.data().set_mesh(V, F); Eigen::VectorXi I; Eigen::MatrixXd edges; if(igl::fast_find_self_intersections(V,F,I,edges)) { std::cout<<"Found "<()); viewer.data().double_sided=true; igl::opengl::glfw::imgui::ImGuiMenu menu; //plugin.widgets.push_back(&menu); menu.callback_draw_viewer_window = [](){}; // Launch the viewer viewer.launch(); }