Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] Is there an existing function to get the bboxof a polyhedron_3

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] Is there an existing function to get the bboxof a polyhedron_3


Chronological Thread 
  • From: "Max" <>
  • To: "" <>
  • Subject: Re: Re: [cgal-discuss] Is there an existing function to get the bboxof a polyhedron_3
  • Date: Sat, 31 May 2008 20:24:10 +0800
  • Organization: Max

>Hi Max,
>
>There is no bbox() member function that caches and updates
>the bbox whenever you change the Polyhedron_3.
>
>The most compact piece of code for computing the bbox in linear time
>looks like this
>
>
>#include <CGAL/bounding_box.h>
>
>Polyhedron_3 poly;
>
>
>CGAL Bbox_3 bb = CGAL::bounding_box(poly.points_begin(),
>points_end()).bbox();
>
>
>andreas

Hello andreas,

Thank you very much for your quick and detailed reply.
That's enough for my current demand.

B/Rgds
Max




Archive powered by MHonArc 2.6.16.

Top of Page