Re: [osg-users] moving a vertex of a Geometry

2014-12-04 Thread Sebastian Messerschmidt
Hi Gianni, very briefly for triangle based geometry with VBO: osgUtil::LineSegmentIntersector::Intersections intersections; if (computeIntersections(view, ea, intersections) ) { const osgUtil::LineSegmentIntersector::Intersection intersection = *(intersections.begin());

[osg-users] moving a vertex of a Geometry

2014-12-03 Thread Gianni Ambrosio
Hi All, I have a surface where a user can pick points. As suggested I used a Geode with Geometry built with osg::PrimitiveSet::POINTS and verteices. Then I used PointSprite to show an image on each point (but I think this is not really important). Now I need to drag points with the mouse.

Re: [osg-users] moving a vertex of a Geometry

2014-12-03 Thread Trajce Nikolov NICK
Hi Gianni, years ago whan I was working on a 3D editor I faced similar challenge. I solved it with selection buffer, where I had two representation of the model - one for fast rendering, when you obviously don't pick or manipulate, so your model with osg::PrimitiveSet::POINTS will represent this,

Re: [osg-users] moving a vertex of a Geometry

2014-12-03 Thread Sebastian Messerschmidt
Hi Gianni Hi All, I have a surface where a user can pick points. As suggested I used a Geode with Geometry built with osg::PrimitiveSet::POINTS and verteices. Then I used PointSprite to show an image on each point (but I think this is not really important). Now I need to drag points with the

Re: [osg-users] moving a vertex of a Geometry

2014-12-03 Thread Gianni Ambrosio
Hi Sebastian, thank you very much for your hint. I will give a look at the LineSegIntersector. Cheers, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61972#61972 ___ osg-users mailing list