Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3


Chronological Thread 
  • From: Cody Rose <>
  • To:
  • Subject: [cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3
  • Date: Tue, 11 Jun 2013 17:15:41 -0700

Hello,

I have run into a repeated problem where I have a Polyhedron_3 such that is_valid() and is_closed() both return true, but conversion to Nef_polyhedron_3 (using the Nef_polyhedron_3 constructor) fails. In Debug builds, an assertion is violated, and in Release builds, my program just crashes. I see in the documentation that this conversion is only possible if the point set is an oriented closed 2-manifold, and the function Polyhedron_3::is_closed() tests this, but this is clearly not the only failure mode, and the fact that any other failure modes that I don't anticipate results in crashes for my users is extremely unfortunate. Is there any way to force CGAL to fail this conversion in a predictable, catchable way even with NDEBUG defined? (Alternatively, is this just a bug? If so I can provide an example polygon that does this.)

Thank you,
Cody Rose



Archive powered by MHonArc 2.6.18.

Top of Page