diff --git a/Polyhedron/demo/Polyhedron/CMakeLists.txt b/Polyhedron/demo/Polyhedron/CMakeLists.txt index 325a670e809..ecab2ece7fd 100644 --- a/Polyhedron/demo/Polyhedron/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/CMakeLists.txt @@ -236,7 +236,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND) add_item(scene_c3t3_item Scene_c3t3_item.cpp) target_link_libraries( scene_c3t3_item PUBLIC scene_triangulation_3_item - scene_surface_mesh_item scene_polygon_soup_item + scene_surface_mesh_item scene_polygon_soup_item scene_edit_box_item scene_basic_objects ${TBB_LIBRARIES}) if(TARGET CGAL::TBB_support) diff --git a/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp index 7eee6f9c094..04d0d44c58e 100644 --- a/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp @@ -3,6 +3,7 @@ #include "Scene_triangulation_3_item.h" #include "Scene_surface_mesh_item.h" #include "Scene_spheres_item.h" +#include "Plugins/PCA/Scene_edit_box_item.h" #include #include @@ -456,13 +457,11 @@ struct Scene_triangulation_3_item_priv { { if (intersection) intersection->setVisible(b); + cut_plane_enabled = b; } bool is_intersection_enabled() { - if (intersection) - return intersection->visible(); - else - return false; + return cut_plane_enabled; } bool is_item_clip_box(int id) { @@ -530,6 +529,7 @@ struct Scene_triangulation_3_item_priv { boost::dynamic_bitset<> visible_subdomain; std::bitset<24> bs[4] = {16777215, 16777215, 16777215, 16777215}; bool show_tetrahedra; + bool cut_plane_enabled; bool is_aabb_tree_built; bool last_intersection; bool cut_edges; diff --git a/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.h b/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.h index 89f0e38d3d9..33a2cd8f124 100644 --- a/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.h @@ -2,7 +2,6 @@ #define SCENE_TRIANGULATION_3_ITEM_H #include "Scene_triangulation_3_item_config.h" -#include "Plugins/PCA/Scene_edit_box_item.h" #include "T3_type.h" #include