Subject: CGAL users discussion list
List archive
[cgal-discuss] How to get the Cell_handle or Vertex_handle from the Finite_cells_iterator or Finite_vertices_iterator?
Chronological Thread
- From: 魏华祎 <>
- To:
- Subject: [cgal-discuss] How to get the Cell_handle or Vertex_handle from the Finite_cells_iterator or Finite_vertices_iterator?
- Date: Fri, 22 Oct 2010 14:10:15 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gvsWB0C3ClurOLD9Zry0iZDebkK/rGB+v3ev3AuJaGlfTp6wAHkQGwazuHDCLt97ak guvnR7mejZzCK0xvaHz6JhmqzgJ0ynjBgBYuA3+xsD8/JoP8DcioSs4YML8OqnyIhCek BYaU1HABLgdyLZFiyk0OLZBrCdTJPAnrDnswA=
Hi, everyone,
I has a problem when I use CGAL 3.6.1 to produce a 3d mesh.
The following are the types I use:
// Types
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3T3;
typedef typename C3T3::Triangulation Tr;
typedef typename Tr::Geom_traits Gt;
typedef typename Tr::Point Point_3;
typedef typename Tr::Cell_handle Cell_handle;
typedef typename Tr::Vertex_handle Vertex_handle;
typedef typename Tr::Edge Edge;
typedef typename Tr::Vertex Vertex;
Then a for loop I use in my program:
for(typename Tr::Finite_cells_iterator cit = tr_.finite_cells_begin();
cit !=tr_.finite_cells_end();++cit)
My question is how can I get a Cell_handle object from cit. I have tried
Cell_handle& cell = *cit;
but it can't pass the compile. The same problem happened when I use
for(typename Tr::Finite_vertices_iterator vit = tr_.finite_vertices_begin();
vit != tr_.finite_vertices_end();++vit)
Vertex_handle & vertex = *vit;
Please help me, thanks very much.
Best wishes
Huayi
- [cgal-discuss] How to get the Cell_handle or Vertex_handle from the Finite_cells_iterator or Finite_vertices_iterator?, 魏华祎, 10/22/2010
- [cgal-discuss] Re: How to get the Cell_handle or Vertex_handle from the Finite_cells_iterator or Finite_vertices_iterator?, 魏华祎, 10/22/2010
- Re: [cgal-discuss] Re: How to get the Cell_handle or Vertex_handle from the Finite_cells_iterator or Finite_vertices_iterator?, Laurent Rineau (GeometryFactory), 10/22/2010
- [cgal-discuss] Re: How to get the Cell_handle or Vertex_handle from the Finite_cells_iterator or Finite_vertices_iterator?, 魏华祎, 10/22/2010
Archive powered by MHonArc 2.6.16.