From 0ba13e5bebcccf8e61e2c8df0c146bc9f2468dff Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 18 Apr 2018 18:04:39 +0200 Subject: [PATCH] Fix inclusions --- Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp | 8 +++++--- Polyhedron/demo/Polyhedron/Scene_c3t3_item.h | 2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp index 80a04dd2c94..65979fd7b41 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp @@ -31,6 +31,9 @@ #include #include +#include "Scene_polygon_soup_item.h" +#include "Scene_polyhedron_item.h" + typedef CGAL::AABB_triangulation_3_triangle_primitive Primitive; typedef CGAL::AABB_traits Traits; @@ -1308,16 +1311,15 @@ void Scene_c3t3_item::export_facets_in_complex() } namespace PMP = CGAL::Polygon_mesh_processing; - Polyhedron outmesh; - if (PMP::is_polygon_soup_a_polygon_mesh(polygons)) { CGAL_assertion_code(bool orientable = ) PMP::orient_polygon_soup(points, polygons); CGAL_assertion(orientable); + Polyhedron outmesh; PMP::polygon_soup_to_polygon_mesh(points, polygons, outmesh); - Scene_polyhedron_item* item = new Scene_polyhedron_item(outmesh); + Scene_polyhedron_item* item = new Scene_polyhedron_item(std::move(outmesh)); item->setName(QString("%1_%2").arg(this->name()).arg("facets")); scene->addItem(item); } diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h index 43c17e9e00e..b197070b85f 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h @@ -19,8 +19,6 @@ #include #include -#include -#include #include #include