Modifs of examples to follow modifs in api

This commit is contained in:
Guillaume Damiand 2011-10-23 11:43:25 +00:00
parent 31440599ae
commit 77b48c85cf
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ int main()
lcc.sew<3>(d1->beta(1)->beta(1)->beta(2), d2->beta(2));
// Barycentric triangulation of the facet between the two cubes.
Dart_handle d3=insert_center_cell_0_in_cell_2(lcc, d2->beta(2));
Dart_handle d3=lcc.insert_barycenter_in_cell<2>(d2->beta(2));
// Set the color of the new vertex to 5.
LCC_3::vertex_attribute(d3)->info()=5;

View File

@ -77,7 +77,7 @@ int main()
std::cout<<", valid="<<lcc.is_valid()<<std::endl;
// Add one vertex on the middle of an edge.
Dart_handle d3 = CGAL::insert_middle_cell_0_in_cell_1(lcc,d1);
Dart_handle d3 = lcc.insert_barycenter_in_cell<1>(d1);
CGAL_assertion( lcc.is_valid() );
lcc.display_characteristics(std::cout);

View File

@ -124,7 +124,7 @@ void subdivide_map_3(LCC_3& m)
// We unmark the darts of the facet to process only once dart/facet.
CGAL::unmark_cell<LCC_3,2>(m, it, treated);
// We triangulate the facet.
CGAL::insert_center_cell_0_in_cell_2(m, it);
m.insert_barycenter_in_cell<2>(it);
}
}