From c72aca01ae60c637ef4934829cf4c430f06e1dfe Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Mon, 23 Jul 2012 10:25:35 +0000 Subject: [PATCH] fix compilation bug introduced in my last commit (function was missing and variable misspelled) --- Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h | 32 ++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h b/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h index 10c34f067c5..090363c6a07 100644 --- a/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h +++ b/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h @@ -1196,7 +1196,7 @@ template ::Vertex_handle C3T3_helpers:: move_point_topo_change(const Vertex_handle& old_vertex, - const Point_3& new_location, + const Point_3& new_position, OutdatedCellsOutputIterator outdated_cells, DeletedCellsOutputIterator deleted_cells) { @@ -1622,6 +1622,36 @@ get_conflict_zone_no_topo_change(const Vertex_handle& vertex, { return tr_.incident_cells(vertex,conflict_cells); } + +template +template +void +C3T3_helpers:: +get_conflict_zone_topo_change(const Vertex_handle& v, + const Point_3& conflict_point, + CellsOutputIterator insertion_conflict_cells, + FacetsOutputIterator insertion_conflict_boundary, + CellsOutputIterator removal_conflict_cells) const +{ + // Get triangulation_vertex incident cells : removal conflict zone + tr_.incident_cells(v, removal_conflict_cells); + + // Get conflict_point conflict zone + int li=0; + int lj=0; + typename Tr::Locate_type lt; + Cell_handle cell = tr_.locate(conflict_point, lt, li, lj, v->cell()); + + if ( lt == Tr::VERTEX ) // Vertex removal is forbidden + return; + + // Find conflict zone + tr_.find_conflicts(conflict_point, + cell, + insertion_conflict_boundary, + insertion_conflict_cells); +} template template