Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Intersection of surfaces

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Intersection of surfaces


Chronological Thread 
  • From: Roger Mason <>
  • To:
  • Subject: [cgal-discuss] Re: Intersection of surfaces
  • Date: Thu, 26 May 2011 03:27:50 -0700 (PDT)

Hi Sebastien,

"Sebastien Loriot (GeometryFactory) [via cgal-discuss]"
<[hidden email]> writes:

> Something like this.
>
> typedef
> CGAL::Box_intersection_d::Box_with_handle_d<double,3,Terrain::Finite_faces_iterator>
> Box;
>
> std::vector<Box> boxes;
> boxes.reserve(t.number_of_faces);
> Terrain t;
> Terrain::Finite_faces_iterator fit=t.finite_faces_begin();
> for (;fit!=t.finite_faces_end();++it){
>    CGAL::Bbox_3 bbox=fit->vertex(0)->point().bbox()+
>                      fit->vertex(1)->point().bbox()+
>                      fit->vertex(2)->point().bbox();
>    boxes.push_back(Box(bbox,fit));
> }
>
> The triangles should be created only in the callback.

Many thanks (again).  I'll work on this later today.

Best wishes,
Roger


View this message in context: Re: Intersection of surfaces
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page