Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h
  • Date: Tue, 01 Apr 2014 16:46:07 +0200
  • Organization: GeometryFactory

Le Tuesday 25 March 2014 01:28:28 Wolf Vollprecht a écrit :
> Hi,
>
> the bounding box in PolylinesGraphicsItem is incorrectly calculated (in 4.3
> and 4.4beta).
>
> Wrong code:
>
> for(typename P::iterator it = polylines->begin();
> it != polylines->end();
> ++it){
> bb = bb + CGAL::bounding_box(polylines->begin()->begin(),
> polylines->begin()->end()).bbox();;
> }
>
> Fixed:
>
> for(typename P::iterator it = polylines->begin();
> it != polylines->end();
> ++it){
> bb = bb + CGAL::bounding_box(it->begin(), it->end()).bbox();
> }
>
> Cheers,
>
> Wolf

Thanks, Wolf. I have integrated your patch in CGAL. I will be in the future
CGAL-4.4 release.

--
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