Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3


Chronological Thread 
  • 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,

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
 
-----Joe C <> wrote: -----

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]




Archive powered by MHonArc 2.6.16.

Top of Page