Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] very very basic CGAL question : how to convert handles to native types
Chronological Thread
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] very very basic CGAL question : how to convert handles to native types
- Date: Fri, 6 Nov 2009 15:10:44 +0100
- Organization: GeometryFactory
On Friday 06 November 2009 15:03:28
wrote:
> Hi everyone,
>
> I have a very basic question about how CGAL allows you to read data
> structures.
>
> in the mesh_polyhedral domain example (the code follows), once you have
> your C3t3 object how do you access the cell (which in that case is a
> tetrahedra) node indices as integers ?
>
> basically I would like to just have something similar to
>
> Vector<Tet> tetVec;
> for(C3t3::Cell_iterator iter = c3t3.cells_begin();iter!=c3t3.cells_end ()
> ;iter++){
At that point, iter->vertex(i) is a Vertex_handle, for example:
Vertex_handle vh = iter->vertex(0);
and you can access the Vertex like that:
Vertex& v = *vh;
if you want to access the Point_3:
vh->point()
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] very very basic CGAL question : how to convert handles to native types, tklein, 11/06/2009
- Re: [cgal-discuss] very very basic CGAL question : how to convert handles to native types, Laurent Rineau (GeometryFactory), 11/06/2009
- RE: [cgal-discuss] very very basic CGAL question : how to convert handles to native types, tklein, 11/06/2009
- Re: [cgal-discuss] very very basic CGAL question : how to convert handles to native types, Laurent Rineau (GeometryFactory), 11/06/2009
- RE: [cgal-discuss] very very basic CGAL question : how to convert handles to native types, tklein, 11/06/2009
- Re: [cgal-discuss] very very basic CGAL question : how to convert handles to native types, Laurent Rineau (GeometryFactory), 11/06/2009
Archive powered by MHonArc 2.6.16.