Hi, everyone.

In my application the user is suuposed to be able to select several shapes
(cylinders, boxes and spheres) and move them altogether as if they were one.
The obvious solution would be to attach this group of shapes to a
matrixtransform node, and only change the matrix of this node.

The thing is: the classes that I have created to represent each one of those
shapes have a few attributes that change according to the position and
orientation of the shape. So, I have created a method
movePrimitive(osg::Matrix m) to perform the transformation of the shape
itself and the adjustment of the mentioned attributes. So, if I use that
matrixtransform node I talked about, the primitives will be
rotated/translated accordingly, but the attributes won't be changed.

Just so you know, the attributes are osg::LineSegment and osg::Plane
pointers and what I do in movePrimitive(osg::Matrix m) is multiply the
osg::LineSegments and osg::Plane by that matrix. osg::LineSegments and
osg::Planes are not nodes, so I can't attach them to my primitive. So what
do you think I can do?

Thanks,

Renan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to