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
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
                            called present ;)
                                      \\\///
                                    /         \
                                    | \\   // |
                                  ( | (.) (.) |)
------------------------------o00o--(_)--o00o----------------------------------

                              MARUTI V BORKER
                              A.K.A SLIMSHADY
                              IIIT hyderabad
                              GHEB-150
------------------------------ooo0---------------------------------------------
                             (   )     0ooo
                              \ (      (   )
                               \_)      ) /
                                       (_/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to