[osg-users] pick a point or line

Han Zhou horzel.5028841 at gmail.com
Wed Apr 6 01:12:20 PDT 2016


Hi all,

I'm working on an CAE software in which users need to setup some params on the boundary. I extract point, line, and face elements so that users can pick and choose them, and it will give a feedback, like change color.
I referenced osgpick example and the OpenSceneGraph 3 cookbook, for surface picking, it is easy. Now the problem is, to pick a point or line, which is the best way to implement it? do I need to implement a Intersector subclass like LineSegmentIntersector?

Thank you!

Cheers,
zhouhan

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








More information about the osg-users mailing list