Hi,

I haven't done this myself, but I believe the PolytopeIntersector will give you 
a list of points you are after. You need to define the planes that make up your 
volume and then use an IntersectionVisitor with the PolytopeIntersector to 
intersect agains your terrain. From there you can retrieve the intersection 
points. I know something similar is done in the osgSim::OverlayNode though I 
think its usage is more complex than yours.

Cheers,

Brad

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Roman Grigoriev
Sent: Saturday, 16 October 2010 1:32 AM
To: [email protected]
Subject: [osg-users] Intersecting volumes and terrain

Hi, I generate terrain using VPB and need to implement intersection lines like 
on attached picture (green lines that shows intersecton between cone and 
terrain). Could someone please give me a hint how to make it using osg?


Thank you!
Cheers,
Roman

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32788#32788




Attachments: 
http://forum.openscenegraph.org//files/1_201.jpg


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



DISCLAIMER:---------------------------------------------------------------------------
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without 
the
written permission of the owner. If you have received this transmission in 
error, or
are not an authorised recipient, please immediately notify the sender by return 
email,
delete this message and all copies from your e-mail system, and destroy any 
printed
copies. Receipt by anyone other than the intended recipient should not be 
deemed a
waiver of any privilege or protection. Thales Australia does not warrant or 
represent
that this e-mail or any documents, files and previous e-mail messages attached 
are
error or virus free.
--------------------------------------------------------------------------------------

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

Reply via email to