Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Bug in halfspaces_intersection.h - or - How to efficiently compute intersection of half-planes (continued)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Bug in halfspaces_intersection.h - or - How to efficiently compute intersection of half-planes (continued)


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Bug in halfspaces_intersection.h - or - How to efficiently compute intersection of half-planes (continued)
  • Date: Mon, 03 Nov 2014 17:12:55 +0100
  • Organization: GeometryFactory

Le Monday 03 November 2014 15:23:09 Quentin Merigot a écrit :
> Thank you for this bug report, it is now fixed in my repository. However, I
> must say that I am surprised that it did not work before this change: the
> numbers provided to the constructor of Polyhedron_incremental_builder_3 are
> in principle only used as estimations to reserve memory. What version of
> CGAL are you using ?

The constructor of CGAL::Polyhedron_incremental_builder has a second
parameter
that is a Boolean:
http://doc.cgal.org/latest/Polyhedron/classCGAL_1_1Polyhedron__incremental__builder__3.html#acb8216ef40323e777f57cd4656d98c83

When it is set to 'true', then that class template does extra checks, and
display diagnostics.

Ilya uses 'true' for the second parameter:
> typename CGAL::Polyhedron_incremental_builder_3<HDS> B( hds, true);
>
> B.begin_surface(_primal.size_of_facets(),
> _primal.size_of_vertices(),
> _primal.size_of_vertices());

That explains the reported behavior.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page