Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] AABB trees with faces from several surface meshes

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] AABB trees with faces from several surface meshes


Chronological Thread 
  • From: Pierre Alliez <>
  • To:
  • Subject: Re: [cgal-discuss] AABB trees with faces from several surface meshes
  • Date: Wed, 26 Dec 2018 17:07:33 +0100
  • Organization: Inria

hi Lucio,

you could build a property map, that maps a face ID to each instance.
or you can also provide your own primitive, which would store the instance ID.

did you try this ?

pierre

Le 19/12/2018 à 06:44, Lucio Santi a écrit :
Hello,

I have an AABB tree storing triangular faces coming from different surface mesh instances. I'm using that data structure to compute intersections with rays, but currently the primitive ID that I obtain for each intersection query is just a face index (i.e., an instance of CGAL::Surface_mesh<Point_3>::Face_index). I would like to know which surface mesh this face belongs to. Is there a clean way to do this? I was thinking of providing my own AABB primitive somehow, but I'm not sure if this is the proper way to do it (and in fact I'm not even sure how this can be done).

Thanks in advance for your help,

Lucio


--
Pierre Alliez
Délégué scientifique (head of science)
Inria Project-team TITANE
Inria Sophia Antipolis - Mediterranee
http://www-sop.inria.fr/members/Pierre.Alliez/




Archive powered by MHonArc 2.6.18.

Top of Page