Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] convex hull for points

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] convex hull for points


Chronological Thread 
  • From: Camille Wormser <>
  • To: <>
  • Subject: Re: [cgal-discuss] convex hull for points
  • Date: Thu, 27 Aug 2009 16:10:26 +0200

I came up with this piece of code which compiles fine, but I get an exception
when I try to do a "facet->second". Could anybody please give a hint on how to
fix it?

std::list<CGAL::Object> facets;
as.filtration(std::back_inserter(facets));

std::list<CGAL::Object>::iterator fit;
for(fit = facets.begin(); fit != facets.end(); fit++)
{
const CGAL::Facet* facet = CGAL::object_cast<Facet>(&(*fit));

Hint 1: if all of these iterators were pointing to Facets, why putting them into an std::list of CGAL::Objects?

Hint 2: giving a relevant title to the message, signing your message, providing the exact exception you get, and a complete piece of code where "as" is defined could help too...

--
Camille Wormser



Archive powered by MHonArc 2.6.16.

Top of Page