Subject: CGAL users discussion list
List archive
- 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/
- Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h, Laurent Rineau (CGAL/GeometryFactory), 04/01/2014
- Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h, Laurent Rineau (CGAL/GeometryFactory), 04/04/2014
- Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h, Wolf Vollprecht, 04/04/2014
- Re: [cgal-discuss] Small bug in PolylinesGraphicsItem.h, Laurent Rineau (CGAL/GeometryFactory), 04/04/2014
Archive powered by MHonArc 2.6.18.