Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] get Primitive in AABB tree by id

Subject: CGAL users discussion list

List archive

[cgal-discuss] get Primitive in AABB tree by id


Chronological Thread 
  • From: 0oo1l0 <>
  • To:
  • Subject: [cgal-discuss] get Primitive in AABB tree by id
  • Date: Thu, 19 Sep 2013 07:01:21 -0700 (PDT)

Hi, I'm trying to solve a problem that I've researched here but havent'
been able to totally figure out from previous posts. My query is directed
to the python-bindings of cgal but if anyone can give me hints via the cpp
that would also be appreciated.

I have an AABB tree built with a list of segments (tree), a segment query
(sa) and a python list (s) that can take iterator output.

I run:

tree.do_intersect(sa)
tree.any_intersected_primitive(sa,s)

and then I get an intersection out of the function (whose .value() is a
Point_3) and the primitive id, which in this case is an integer, in s.

How can I use the id to return the segment in the AABB tree that generated
the intersection? If it can't be done with the lists of Segment_3s, how
could I change the methodology (--should they be Line_3s?--) so that I can
find the point of intersection and the primitive that intersects with the
query? I understand that in some AABB trees the Id is a handler but I don't
know how to point that to the AABB.tree primitive. And, anyway, in this
case (Segment_3 list and with a Segment_3 query) the Id is just an integer!

Thanks for any help.


(Also, great tool this library is!)



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/get-Primitive-in-AABB-tree-by-id-tp4658059.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page