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: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Conversion from Polyhedron_3 to Nef_polyhedron_3
  • Date: Mon, 30 Mar 2009 23:42:23 +0100
  • Organization: GeometryFactory

On Tuesday 31 March 2009 00:26:37 Joe C wrote:
> 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.


Polyhedron_3 and Nef_polyhedron_3 are two different packages. I do not see why the is_valid() function of Polyhedron_3 should be aware of the prerequisites of a function of Nef_polyhedron_3.


That said, there should be a function in Nef_polyhedron_3 that helps users to check prerequisites of a conversion from a Polyhedron_3. The Polyhedron_3::is_closed() is not sufficient.


--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/





Archive powered by MHonArc 2.6.16.

Top of Page