Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] AABBTree primitives or objects problem

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] AABBTree primitives or objects problem


Chronological Thread 
  • From: Camille Wormser <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] AABBTree primitives or objects problem
  • Date: Fri, 4 Dec 2009 11:48:39 +0100

Hi Roberto,
There is a method all_intersected_primitives which allows to retrieve the primitives for which the do_intersect predicate returned true. It will give you the 5 of them.
Does it answer your question?
--
Camille

On Dec 4, 2009, at 11:34, Roberto Lam
<>
wrote:

Hi Camile,
thanks for the quick answer. You are right I am using
and indeed isn't a AABBTree problem. There is any way to access
information from the primitives? Where can I get more information
them? In the code (below) I saw in VS debugger that 'op' has a
'second' field. So far I discover from the debugger that has
information on facet (I am using a polyhedron_3 as base for
constructing my AABBTree) but I dont know what is or how to use it.

thanks for the help
roberto

/**************************************/
for ( it=intersections.begin() ; it != intersections.end(); it++ ){
Object_and_primitive_id op = *it;
CGAL::Object object = op.first;
Point point;
if(CGAL::assign(point,object))
std::cout << "intersection object is a point : " << point << std::endl;

}

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page