Subject: CGAL users discussion list
List archive
- From: sgdimitris <>
- To:
- Subject: [cgal-discuss] Re: Take the triangles of a polyhedron
- Date: Fri, 9 Mar 2012 11:24:40 -0800 (PST)
Thank you for the quick and helpful answer.
Yes I meant iterate by "take".
I would like to ask you one more question. How can I refer to vertices of
each facet.
for example i want to print the vertices of each facet
So I have to do something like
"
for(Facet_iterator f = polyhedron.facets_begin();
f != polyhedron.facets_end();
++f) {
// Print the vertices
}
"
as I did with edges in the following code
"
for ( Edge_iterator w = poly.edges_begin(); w != poly.edges_end(); ++w)
std::cout << "First Vertex of the edge" <<
w->opposite()->vertex()->point() << " Second Vertex of the edge" <<
w->vertex()->point() << std::endl;
"
Best regards,
Dimitris
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Take-the-triangles-of-a-polyhedron-tp4460275p4460406.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Take the triangles of a polyhedron, sgdimitris, 03/09/2012
- Re: [cgal-discuss] Take the triangles of a polyhedron, Philipp Moeller, 03/09/2012
- [cgal-discuss] Re: Take the triangles of a polyhedron, sgdimitris, 03/09/2012
- Re: [cgal-discuss] Re: Take the triangles of a polyhedron, Philipp Moeller, 03/09/2012
- [cgal-discuss] Re: Take the triangles of a polyhedron, sgdimitris, 03/09/2012
- Re: [cgal-discuss] Re: Take the triangles of a polyhedron, Philipp Moeller, 03/09/2012
- [cgal-discuss] Re: Take the triangles of a polyhedron, sgdimitris, 03/09/2012
- Re: [cgal-discuss] Take the triangles of a polyhedron, Philipp Moeller, 03/09/2012
Archive powered by MHonArc 2.6.16.