Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] how to campare Alpha_shape_3 and Triangulation_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] how to campare Alpha_shape_3 and Triangulation_3


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] how to campare Alpha_shape_3 and Triangulation_3
  • Date: Sun, 11 Apr 2010 14:47:44 +0200
  • Organization: GeometryFactory

Le Dimanche 11 Avril 2010 14:15:13, Song Lin a écrit :
> Thank you very much for your reply.
>
> I have noticed the function classify(...) but I cant find out how to
> convert the iterator type
>
> Alpha_shape_3::Finite_edges_iterator vit;
>
> to the type
>
> Alpha_shape_3::Edge

The value_type of that iterator type is... "Edge"!

Let's renamed your iterator variable to "eit" (edge it', instead of vertex
it'), then the Finite_edges_iterator eit is a kind of pointer, and it points
to "*eit".

> that the function
>
> as.classify( Edge e, FT alpha = get_alpha())
>
> needed.

as.classify(*eit, 0);

--
Laurent Rineau, PhD
Release Manager of the CGAL Project http://www.cgal.org/
R&D Engineer at GeometryFactory http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page