mirror of https://github.com/CGAL/cgal
Modifs of examples to follow modifs in api
This commit is contained in:
parent
31440599ae
commit
77b48c85cf
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue