Hi Sanat,

Am 03.03.2011 20:21, schrieb Sanat Talmaki:
> Hi,
> 
> I want to test for intersection in my scene using a cylinder instead of a 
> line segment. 
> 
> For example if my object is on a terrain I want to highlight all features 
> that are within an imaginary cylinder around my object.
> 
> I read about polytope intersector but it seems as though that is for planes 
> only or can I get cylinder intersector from there as well ?

You could use the PolytopeIntersector with a hexagonal shape
which envelops the cylinder and post-process the results.
This sould give you a good aproximation and little false
positives.

As was noted by Chris PolytopeIntersector can be very slow
if there are many Intersections in the picking volume.
That is because every primitive and every vertex that
is inside the volume is recorded in the result.

The kd-tree is not integrated into PolytopeIntersector
as of now.


> Any tips on how I can get started will be much appreciated.
> 
> Thanks!
> 
> Sincerely,
> Sanat.
> 
> ------------------

Cheers,

Peter
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to