Merge pull request #7342 from oleg-alexandrov/master

Add example of printing vertex coordinates
This commit is contained in:
Laurent Rineau 2023-03-31 11:10:42 +02:00
commit ac58449af5
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ int main()
// or with boost::tie, as the CGAL range derives from std::pair
for(boost::tie(vb, ve) = m.vertices(); vb != ve; ++vb){
std::cout << *vb << std::endl;
// Print vertex index and vertex coordinates
std::cout << *vb << " " << m.point(*vb) << std::endl;
}
// Instead of the classical for loop one can use