Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Alpaha shape question
- Date: Wed, 18 Mar 2009 11:16:14 +0100
naresh wrote:
Hi
How can i save Alpha_shape_3 to .off file. ? I want to save trianglulated shape to off file .
Is that any way to save it ?
Alex
Hi Alex,
You have to code it by hand, but that shouldn't be too dificult.
print the header with the number of vertices and facets
Use a std::map<Vertex_handle, int>, traverse all alpha shape
vertices, check if they are in the map, and if not, put them in
there and increment a counter that started at 0. At the same
time print the x y z
Traverse all alpha shape facets and for the three vertices of the
facet read the indices from the map Print 3 i j k
where "3" indicates that the face has three vertices.
Hope this helps,
andreas
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, (continued)
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- [cgal-discuss] How to rotate Segment_2, naresh, 03/06/2009
- [cgal-discuss] Sweep Line Running slow, naresh, 03/07/2009
- Re: [cgal-discuss] Sweep Line Running slow, Ophir Setter, 03/07/2009
- [cgal-discuss] Point Rotation problem or Bug ?, naresh, 03/12/2009
- [cgal-discuss] How to find center of mass and principal inertial axis of 3D model?, Samay Kumar, 03/13/2009
- Re: [cgal-discuss] How to find center of mass and principal inertial axis of 3D model?, naresh, 03/13/2009
- Re: [cgal-discuss] How to find center of mass and principal inertial, Ashwin N, 03/14/2009
- Re: [cgal-discuss] Point Rotation problem or Bug ?, Ashwin N, 03/14/2009
- [cgal-discuss] Point Rotation problem or Bug ?, naresh, 03/12/2009
- [cgal-discuss] Alpaha shape question, naresh, 03/18/2009
- Re: [cgal-discuss] Alpaha shape question, Andreas Fabri, 03/18/2009
- Re: [cgal-discuss] Alpaha shape question, naresh, 03/19/2009
- Re: [cgal-discuss] Sweep Line Running slow, Ophir Setter, 03/07/2009
- [cgal-discuss] Sweep Line Running slow, naresh, 03/07/2009
- Re: [cgal-discuss] How to rotate Segment_2, Ashwin N, 03/09/2009
- Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
Archive powered by MHonArc 2.6.16.