From 5403ae1f372794383ed9550c8d8e0b1fecc26f90 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 1 Mar 2016 09:03:29 +0100 Subject: [PATCH] Addition of a call to c3t3_changed() in the end of the loading function, so the c3t3 is updated before the computation of the colors. --- .../demo/Polyhedron/Plugins/Mesh_3_plugin/C3t3_io_plugin.cpp | 3 +++ Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/C3t3_io_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/C3t3_io_plugin.cpp index 20008681d73..a4a869651d5 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/C3t3_io_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/C3t3_io_plugin.cpp @@ -58,6 +58,7 @@ Polyhedron_demo_c3t3_binary_io_plugin::load(QFileInfo fileinfo) { if(item->load_binary(in)) { + item->c3t3_changed(); item->changed(); return item; } @@ -65,6 +66,7 @@ Polyhedron_demo_c3t3_binary_io_plugin::load(QFileInfo fileinfo) { item->c3t3().clear(); in.seekg(0); if(try_load_other_binary_format(in, item->c3t3())) { + item->c3t3_changed(); item->changed(); return item; } @@ -72,6 +74,7 @@ Polyhedron_demo_c3t3_binary_io_plugin::load(QFileInfo fileinfo) { item->c3t3().clear(); in.seekg(0); if(try_load_a_cdt_3(in, item->c3t3())) { + item->c3t3_changed(); item->changed(); return item; } diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp index 27f13b8ad50..65a50fa12f0 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp @@ -1146,7 +1146,6 @@ void Scene_c3t3_item::compute_elements() if (isEmpty()){ return; } - for (Tr::Finite_facets_iterator fit = c3t3().triangulation().finite_facets_begin(), end = c3t3().triangulation().finite_facets_end(); @@ -1166,7 +1165,6 @@ void Scene_c3t3_item::compute_elements() } tree.build(); - //The facets { for (C3t3::Facet_iterator