From 3b8d7a0dc8aaa8d663c5d3e7b0d7c25a59713b1a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 14 Dec 2015 12:39:43 +0100 Subject: [PATCH] Enhancement: display only non-degenerated spheres diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp index fbb848f..abe1721 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp @@ -1025,6 +1025,8 @@ void Scene_c3t3_item::compute_elements() const end = d->c3t3.triangulation().finite_vertices_end(); vit != end; ++vit) { + if(vit->point().weight()==0) continue; + typedef Tr::Vertex_handle Vertex_handle; std::vector incident_vertices; d->c3t3.triangulation().incident_vertices(vit, std::back_inserter(incident_vertices)); --- Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp index 92f710e7457..48825a6a844 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp @@ -1081,6 +1081,8 @@ void Scene_c3t3_item::compute_elements() const end = d->c3t3.triangulation().finite_vertices_end(); vit != end; ++vit) { + if(vit->point().weight()==0) continue; + typedef Tr::Vertex_handle Vertex_handle; std::vector incident_vertices; d->c3t3.triangulation().incident_vertices(vit, std::back_inserter(incident_vertices));