Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Custom Segment_3 in AABB

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Custom Segment_3 in AABB


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Custom Segment_3 in AABB
  • Date: Mon, 05 May 2014 13:29:27 +0200
  • Organization: GeometryFactory

On 05/05/2014 11:41 AM, gmgunderground wrote:
I need to load in a AABB tree many Segment_3, and to any segment I need to
set a unique MyID that I choose. In a second step I need to query the tree
and I want to get all the MyID from the primitives that result from query.
How can I do that? Are days that I search a solution but I can't find it.
Can someone help me?

Best regards
GMG

This example is more or less doing what you want:
http://doc.cgal.org/latest/AABB_tree/AABB_tree_2AABB_custom_indexed_triangle_set_array_example_8cpp-example.html

However, the best way to do it should be to use AABB_primitive
http://doc.cgal.org/latest/AABB_tree/structCGAL_1_1AABB__primitive.html


Sebastien.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Custom-Segment-3-in-AABB-tp4659245.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page