Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Uncatchable exception converting from Nef polyhedron to Polyhedron_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Uncatchable exception converting from Nef polyhedron to Polyhedron_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Uncatchable exception converting from Nef polyhedron to Polyhedron_3
  • Date: Mon, 23 Feb 2015 08:13:58 +0100
  • Organization: GeometryFactory

On 02/20/2015 09:01 PM, Marius Kintel wrote:
On Feb 20, 2015, at 14:55 PM, Sebastien Loriot (GeometryFactory)
<>
wrote:
In the meantime you can try:
#define CGAL_CT2_WANTS_TO_HAVE_EXTRA_ACTION_FOR_INTERSECTING_CONSTRAINTS
#define CGAL_CDT2_EXTRA_ACTION_FOR_INTERSECTING_CONSTRAINTS throw
WhatEverException;

This will allow you to throw an exception if constraints intersect.

Not sure that would make a difference. If those defines are not there, the default
action is "CGAL_triangulation_assertion(false);”
..which throws an exception. The presence of this exception is what causes
the later crash.

My understanding is that what we need is to _not_ throw _any_ exceptions in
destructors, as that requires a guarantee that no existing exceptions can be
active. Such a guarantee is probably hard or tedious to maintain.

With the patch for Nef, I don't have any exception thrown in the destructor anymore in the polyhedron demo.
If you have an issue triangulating an invalid face, then if you throw
an exception using the macros I mentioned it should be OK if you protect
your call to Nef_polyhedron_3::convert_to_polyhedron with a try/catch.

Maybe I'm missing something here...

Sebastien.



-Marius






Archive powered by MHonArc 2.6.18.

Top of Page