| 15 | } |
| 16 | |
| 17 | void IGLCSGTree::compute_intersection() { |
| 18 | IGLCSGTree* tree_1 = dynamic_cast<IGLCSGTree*>(m_tree_1.get()); |
| 19 | IGLCSGTree* tree_2 = dynamic_cast<IGLCSGTree*>(m_tree_2.get()); |
| 20 | m_igl_tree = igl::copyleft::cgal::CSGTree( |
| 21 | tree_1->m_igl_tree, tree_2->m_igl_tree, |
| 22 | igl::MESH_BOOLEAN_TYPE_INTERSECT); |
| 23 | } |
| 24 | |
| 25 | void IGLCSGTree::compute_difference() { |
| 26 | IGLCSGTree* tree_1 = dynamic_cast<IGLCSGTree*>(m_tree_1.get()); |