Subject: CGAL users discussion list
List archive
- From: Joe C <>
- To:
- Subject: Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3
- Date: Mon, 30 Mar 2009 15:26:37 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bMS8z3Fmvgq+XO6hKlwSrrTu/5L7Re28mOu+WvlrvNp7dl0BTJe6Fl8fajpeI4KeU6 5vGRbZtkqtDn4nefPI454+75k+k88Z2AeX2AVUV1X5NVnQ2kwMblCxwHob7GMedeev4Z uviQQZqDcYesxbwlUIEAl7zdHF6x+AO3sR+lQ=
Thanks, Peter. I also found that there are two degenerated triangles for my input data. So I guess CGAL's polyhedron_3 still considers this as closed and valid even though it has degeneated cases. I suggest that the two methods : is_close() or is_valid() return false with some error message so the user is aware that the polyhedron with degenerated triangles is not allowed to converted to Nef_polyhedron.
Joe
On Mon, Mar 30, 2009 at 2:51 PM, Peter Hachenberger <> wrote:
Hi Joe,-----Joe C <> wrote: -----
your model features two empty triangles, i.e., the defining points are colinear. It's the following lines:
3 19 17 18
3 30 32 31
I attached a Nef file that is consistent, but you probably want to fix your off-file, too.
Peter
To:
From: Joe C <>
Date: 03/28/2009 12:02AM
Subject: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3 failed
Hi,
I was converting a polyhedron (see attached Polyhedron.off) to Nef_polyhedron_3, but it failed. I checked my polyhedron, it is closed and valid. The kernel used is Exact_predicates_exact_constructions_kernel. Does anyone have idea why the conversion failed? Is there any way to catch the failure and avoid crashing the program?
Thanks.
Joe
[attachment "Polyhedron.off" removed by Peter Hachenberger]
- [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3 failed, Joe C, 03/28/2009
- [cgal-discuss] Re: Conversion from Polyhedron_3 to Nef_polyhedron_3 failed, Joe C, 03/30/2009
- Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3 failed, Peter Hachenberger, 03/30/2009
- Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3, Joe C, 03/31/2009
- Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3, Laurent Rineau (GeometryFactory), 03/31/2009
- [cgal-discuss] Site_2 constructor?, Khuong Vu, 03/31/2009
- Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3, Laurent Rineau (GeometryFactory), 03/31/2009
- Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3, Joe C, 03/31/2009
Archive powered by MHonArc 2.6.16.