Re: [osg-users] Help me with polytope intersector please !!!

2012-07-20 Thread Peter Amstutz
The polytope intersector tests to see if a frustum (i.e. truncated pyramid) volume contains or intersects with geometry. In the case of a testing a polygon or a fully contained line segment, there is no single point that describes the intersection. This is fine for selection when you are prim

[osg-users] Help me with polytope intersector please !!!

2012-07-20 Thread Bob Slobodan
Hi guys, I'm having some difficulties with a polytope intersector. My scene uses polygons, lines and points, so I decided to use a polytope intersector to find which object the user wants to select. Here is my code : Code: osg::ref_ptr viewport = camera->getViewport(); double mx = viewport->x(