Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Segmentation fault when removing vertices from a Delaunay triangulation

Subject: CGAL users discussion list

List archive

[cgal-discuss] Segmentation fault when removing vertices from a Delaunay triangulation


Chronological Thread 
  • From: Josip Dzolonga <>
  • To:
  • Subject: [cgal-discuss] Segmentation fault when removing vertices from a Delaunay triangulation
  • Date: Fri, 6 Nov 2009 16:18:28 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hKikoHryZ7uUA3Fl2IRWT8TtEa7CmbELqmzW5wbbB93JJufKHhQMmZQeJSvHd4VmTh FptpXpYvkeQ2B1fuj9oDFtQVugzmuhSoi9H5cEJCfkspAlY5K5VcTSf44MyqWjhsPU3s NC7wVeCYqZe4sLWId+1o+TrU5OusLiQpujgok=

Here is the problematic code:

for(std::list<Facet>::iterator iter = grown->facets->begin();
      iter != grown->facets->end(); ++iter) {
    Cell_handle c = (*iter).first;

int index = (*iter).second;
T.remove(c->vertex((index+1)%4));
T.remove(c->vertex((index+2)%4));
T.remove(c->vertex((index+3)%4));
}

Basically, I have a set of facets that I have extracted from the triangulation and I want to remove them along with their points. But, the T.remove lines cause segmentation faults, where T is of type CGAL::Triangulation_hierarchy_3<Dt>. I get no precondition errors, just a segfault.

Thank you in advance,
Josip



Archive powered by MHonArc 2.6.16.

Top of Page