Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Small bug in PolylinesGraphicsItem.h


Chronological Thread 
  • From: Wolf Vollprecht <>
  • To:
  • Subject: [cgal-discuss] Small bug in PolylinesGraphicsItem.h
  • Date: Tue, 25 Mar 2014 01:28:28 +0100

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


  • [cgal-discuss] Small bug in PolylinesGraphicsItem.h, Wolf Vollprecht, 03/25/2014

Archive powered by MHonArc 2.6.18.

Top of Page