[osg-users] Non-convex polytope picking
Antoine Rennuit
antoinerennuit at hotmail.com
Thu Sep 14 10:34:44 PDT 2017
Dear OSG forum,
I am currently using PolytopeIntersector with rectangular polygons for picking. I am thinking of extending this selection mode with polygons than could potentially be complex, non-convex for instance (e.g. polygons resulting from hand drawn areas).
Now I understand that the osg::Polytope class can only handle convex polygons.
Does that mean that if I want to pick using non-convex polygons I need to split my non-convex polygon into multiple convex osg::Polytopes and call the IntersectionVisitor multiple times? Is this handled in OSG? Are there helpers or should I do all this on the app side?
Kind regards,
Antoine.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71725#71725
More information about the osg-users
mailing list