Could you post what you have coded so far in order to see what is wrong? For now, just post the mesh modification code. Could it also be that you are not calling osg::Drawable::dirtyDisplayList() so the drawable never gets modified?
Alberto El Sábado 11 Agosto 2007, maruti borker escribió: > I was not able to edit the mesh data.. can u give some more refernces ?? > > On 8/8/07, Alberto Luaces <[EMAIL PROTECTED]> wrote: > > El Martes 07 Agosto 2007, maruti borker escribió: > > > HI everyone > > > I am a n00b in OSG and i am using OSG 2.0 in linux . > > > > I > > > > > wam developing a system which will needs an option where the user can > > > change the loaded model by mouse clicks . The result of one mouse click > > > shud engrave a point at that point . That is , if i drag on the model > > > > and > > > > > draw a line then the line shud be engraved on the model . > > > > > > So what i did was used osgUtil::LIneSegementIntersecto r::Intersection > > > > to > > > > > find the intersection and then get the points , and then move the > > > points > > > > in > > > > > a direction negative to the direction of the plane normal . But i dont > > > > have > > > > > any idea to implement this any help ???? > > > > > > Thanx > > > - > > > Maruti Borker > > > > Hi, > > > > as you mentioned, you can use the LineSegementIntersector, and then get > > the > > mesh data from the nodes you picked, transform it and modify the > > drawable's > > nodes. To get and modify the mesh data of a Geode, see the osggeometry > > example. It can also help using the osg::TriangleFunctor class. > > > > HTH, > > > > Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

