Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] using C3T3::Facet_iterator with AABB_Tree
  • Date: Tue, 27 Sep 2011 10:07:27 +0200

You need to write you own model of AABBPrimitive

see here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/AABB_tree_ref/Concept_AABBPrimitive.html

The easy way to do it is to copy-paste-adapt the code of
AABB_polyhedron_triangle_primitive.

Sebastien.

Frankie Li wrote:
Hi all,

Is there a way to use the Facet_iterator (or Facets_in_complex_iterator) with AABB. My end goal is to put all of the boundary facets from a Complex 3 in triangulation 3 into an AABB_Tree, but Facet_iterator is non-mutable.

The only alternative I've come up with is to use a filtered_iterator with finite_facet_iterator from c3t3.triangulation().finite_facet_begin().


Thanks!


Frankie





Archive powered by MHonArc 2.6.16.

Top of Page