diff --git a/Mesh_3/demo/Mesh_3/Mesh_3_optimization_plugin_cgal_code.cpp b/Mesh_3/demo/Mesh_3/Mesh_3_optimization_plugin_cgal_code.cpp
index 16260496cbd..8307be69868 100644
--- a/Mesh_3/demo/Mesh_3/Mesh_3_optimization_plugin_cgal_code.cpp
+++ b/Mesh_3/demo/Mesh_3/Mesh_3_optimization_plugin_cgal_code.cpp
@@ -677,8 +677,7 @@ class Optimization_function < Domain, Exude_parameters >
typedef C3t3::Triangulation Tr;
typedef CGAL::Mesh_3::Min_dihedral_angle_criterion
Sc;
typedef Exude_visitor Visitor;
- typedef CGAL::Mesh_3::Slivers_exuder<
- C3t3,Domain,Sc,Visitor> Exuder;
+ typedef CGAL::Mesh_3::Slivers_exuder Exuder;
typedef Optimization_function_base< Domain > Base;
@@ -716,7 +715,7 @@ protected:
if ( NULL != exude_ ) { return CGAL::MESH_OPTIMIZATION_UNKNOWN_ERROR; }
// Create exuder
- exude_ = new Exuder(c3t3, domain, criterion_);
+ exude_ = new Exuder(c3t3, criterion_);
if ( NULL == exude_ ) { return CGAL::MESH_OPTIMIZATION_UNKNOWN_ERROR; }
// Set time_limit
diff --git a/Mesh_3/examples/Mesh_3/mesh_implicit_ellipsoid.cpp b/Mesh_3/examples/Mesh_3/mesh_implicit_ellipsoid.cpp
index 66de13b3476..dbc162aa2c4 100644
--- a/Mesh_3/examples/Mesh_3/mesh_implicit_ellipsoid.cpp
+++ b/Mesh_3/examples/Mesh_3/mesh_implicit_ellipsoid.cpp
@@ -60,7 +60,7 @@ int main()
CGAL::perturb_mesh_3(c3t3, domain, time_limit=5, sliver_bound=12);
// Exudation
- CGAL::exude_mesh_3(c3t3, domain);
+ CGAL::exude_mesh_3(c3t3);
// Output
medit_file.open("out_optimized.mesh");
diff --git a/Mesh_3/examples/Mesh_3/mesh_optimization_lloyd_example.cpp b/Mesh_3/examples/Mesh_3/mesh_optimization_lloyd_example.cpp
index 04a2b869653..01b093b893b 100644
--- a/Mesh_3/examples/Mesh_3/mesh_optimization_lloyd_example.cpp
+++ b/Mesh_3/examples/Mesh_3/mesh_optimization_lloyd_example.cpp
@@ -52,7 +52,7 @@ int main()
no_perturb(), no_exude());
CGAL::lloyd_optimize_mesh_3(c3t3_bis, domain, time_limit=30);
- CGAL::exude_mesh_3(c3t3_bis, domain, sliver_bound=10, time_limit=10);
+ CGAL::exude_mesh_3(c3t3_bis, sliver_bound=10, time_limit=10);
// Output
std::ofstream medit_file("out.mesh");
diff --git a/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h b/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h
index e27bc1b4c55..426617802c3 100644
--- a/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h
+++ b/Mesh_3/include/CGAL/Mesh_3/C3T3_helpers.h
@@ -3393,54 +3393,54 @@ bool
C3T3_helpers::
try_lock_and_get_incident_cells(const Vertex_handle& v,
Cell_vector &cells) const
-{
- // We need to lock v individually first, to be sure v->cell() is valid
- if (!try_lock_vertex(v))
- return false;
-
- Cell_handle d = v->cell();
- if (!try_lock_element(d)) // LOCK
{
- unlock_all_elements();
- return false;
- }
- cells.push_back(d);
- d->tds_data().mark_in_conflict();
- int head=0;
- int tail=1;
- do {
- Cell_handle c = cells[head];
+ // We need to lock v individually first, to be sure v->cell() is valid
+ if (!try_lock_vertex(v))
+ return false;
- for (int i=0; i<4; ++i) {
- if (c->vertex(i) == v)
- continue;
- Cell_handle next = c->neighbor(i);
-
- if (!try_lock_element(next)) // LOCK
- {
- BOOST_FOREACH(Cell_handle& ch,
- std::make_pair(cells.begin(), cells.end()))
- {
- ch->tds_data().clear();
- }
- cells.clear();
- unlock_all_elements();
- return false;
- }
- if (! next->tds_data().is_clear())
- continue;
- cells.push_back(next);
- ++tail;
- next->tds_data().mark_in_conflict();
+ Cell_handle d = v->cell();
+ if (!try_lock_element(d)) // LOCK
+ {
+ unlock_all_elements();
+ return false;
}
- ++head;
- } while(head != tail);
- BOOST_FOREACH(Cell_handle& ch, std::make_pair(cells.begin(), cells.end()))
- {
- ch->tds_data().clear();
+ cells.push_back(d);
+ d->tds_data().mark_in_conflict();
+ int head=0;
+ int tail=1;
+ do {
+ Cell_handle c = cells[head];
+
+ for (int i=0; i<4; ++i) {
+ if (c->vertex(i) == v)
+ continue;
+ Cell_handle next = c->neighbor(i);
+
+ if (!try_lock_element(next)) // LOCK
+ {
+ BOOST_FOREACH(Cell_handle& ch,
+ std::make_pair(cells.begin(), cells.end()))
+ {
+ ch->tds_data().clear();
+ }
+ cells.clear();
+ unlock_all_elements();
+ return false;
+ }
+ if (! next->tds_data().is_clear())
+ continue;
+ cells.push_back(next);
+ ++tail;
+ next->tds_data().mark_in_conflict();
+ }
+ ++head;
+ } while(head != tail);
+ BOOST_FOREACH(Cell_handle& ch, std::make_pair(cells.begin(), cells.end()))
+ {
+ ch->tds_data().clear();
+ }
+ return true;
}
- return true;
-}
template
template
diff --git a/Mesh_3/include/CGAL/Mesh_3/Slivers_exuder.h b/Mesh_3/include/CGAL/Mesh_3/Slivers_exuder.h
index 346567ccf8f..14c461fb7b5 100644
--- a/Mesh_3/include/CGAL/Mesh_3/Slivers_exuder.h
+++ b/Mesh_3/include/CGAL/Mesh_3/Slivers_exuder.h
@@ -27,7 +27,6 @@
#include
#include
-#include
#include