Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3
- Date: Wed, 12 Jun 2013 07:13:30 +0200
- Organization: GeometryFactory
Could you provide an example (you can send it directly to me if you want)?
Sebastien.
On 06/12/2013 02:15 AM, Cody Rose wrote:
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
- [cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3, Cody Rose, 06/12/2013
- Re: [cgal-discuss] capture of errors during conversion of Polyhedron_3 to Nef_polyhedron_3, Sebastien Loriot (GeometryFactory), 06/12/2013
Archive powered by MHonArc 2.6.18.