mirror of https://github.com/CGAL/cgal
Merge pull request #7342 from oleg-alexandrov/master
Add example of printing vertex coordinates
This commit is contained in:
commit
ac58449af5
|
|
@ -46,7 +46,8 @@ int main()
|
||||||
|
|
||||||
// or with boost::tie, as the CGAL range derives from std::pair
|
// or with boost::tie, as the CGAL range derives from std::pair
|
||||||
for(boost::tie(vb, ve) = m.vertices(); vb != ve; ++vb){
|
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
|
// Instead of the classical for loop one can use
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue