Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp
Chronological Thread
- From: Matthew Denno <>
- To:
- Subject: Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp
- Date: Wed, 7 Oct 2009 08:04:07 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=lVJei8eMVG8liEPhjJTjd6uAEV29tIUz4WOZvBi6IEZ0mkyGpdiZxu9A9SaQSyfYlA LS2YeoZpDfZkE7BahUP7sb3kehPgSTG67n8wM3prYzEFGZOyBR+JQ8HH0hu45wrSkb6q iSPBUe9Ez4ZO5ridcw01aDfqn0MLghNccPI5g=
I am not at my computer right now but if I recall there was a thread discussing how to do this a few weeks back. Maybe you could search and find it.
On Oct 7, 2009 12:56 AM, "Alejandro Aguilar Sierra" <> wrote:
Hello:
I am studyng example examples/Mesh_2/mesh_global.cpp. The last line
prints the number of vertices.
std::cout << "Number of vertices: " << cdt.number_of_vertices() << std::endl;
I want to print instead the vertices and then the faces, so I can draw
the mesh with any mesh viewer. Actually I am trying to create an OBJ
file.
First I print the vertices
for (CDT::Vertex_iterator vit = cdt.vertices_begin(); vit!=
cdt.vertices_end(); ++vit) {
std::cout << "v " << (*vit) << " 0" << std::endl;
}
Now I want to print the faces, but just the individual faces prints nothing.
for (CDT::Face_iterator fit = cdt.faces_begin(); fit!=
cdt.faces_end(); ++fit) {
std::cout << "f " << (*fit) << std::endl;
}
Yes I am looking and trying, but no success so far.
How can I get the vertices information from the faces?
Any hint?
Regards,
--
Alejandro Sierra
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Alejandro Aguilar Sierra, 10/07/2009
- Message not available
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Matthew Denno, 10/07/2009
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Matthew Denno, 10/07/2009
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Alejandro Aguilar Sierra, 10/07/2009
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Laurent Rineau (GeometryFactory), 10/07/2009
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Alejandro Aguilar Sierra, 10/07/2009
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Matthew Denno, 10/07/2009
- Re: [cgal-discuss] How to extract faces from a CDT? examples/Mesh_2/mesh_global.cpp, Matthew Denno, 10/07/2009
- Message not available
Archive powered by MHonArc 2.6.16.