[osg-users] pick a point or line
Robert Osfield
robert.osfield at gmail.com
Fri Apr 15 10:30:59 PDT 2016
Hi Zhouhan,
LineSegmentIntersector is only able to intersect surfaces. For points and
lines you need to use another Intersector, either a custom one or the
osgSim::PolytopeInersector. The PolytopeIntersector allows you to use a
collection of planes to set up the picking region.
Robert.
On 6 April 2016 at 09:12, Han Zhou <horzel.5028841 at gmail.com> wrote:
> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160415/4edd3c8d/attachment-0003.htm>
More information about the osg-users
mailing list