Hi Filip,

On Mon, 2003-11-17 at 09:52, Filip STOKLAS wrote:
> Hi,
> I have a question. I'm using osg::IntersectAction, it works fine, 
> but only with polygons. I want to use it also for lines and points, 
> but it doesn't work, it's probably a feature (not a bug). Is there any 
> possibility how to find an intersection with a line or point?

not directly. The interesting question is what you want to use it for.

If you need it picking/selecting points/lines there is an example in
Source/WindowSystem/GLUT called testLineFrustumIntesector.cpp that you
might be able to base it on. It iterates through a geometry and selects
all the edges that intersect a frustum (i.e. an area of n pixel around a
click point).

We don't have a full-blown demo for that, but that test might help you
get started.

Hope it helps

        Dirk






-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to