[osg-users] Resize a shape?
robert.osfield at gmail.com
Wed Oct 24 02:09:47 PDT 2007
After modifiying the shape call dirtyDisplayList() on the
ShapeDrawable to get it to recreate the display list that is passed to
On 10/23/07, Patrick Maier <maierp at gmx.net> wrote:
> I'm new to this list and to openscenegraph and I've a question regarding a
> problem and I don't know how to solve it.
> It should be really trivial, but I don't get it managed, and google or
> other searches could not help me.
> I've a cylinder, and while showing the scene, I want to change the size
> (height) of the cylinder.
> I tried it that way, but only the first call of setting the height is a
> success (so the height of the cylinder stays at 0.1):
> osg::Geode* possible_binding = new osg::Geode();
> osg::Cylinder* possible_binding_shape = new
> osg::Cylinder(osg::Vec3(0,0,0), 0.4, 1.0);
> osg::ShapeDrawable* possible_binding_drawable = new
> float i = 0;
> i += 0.1f;
> std::cout << "Main: " <<
> << std::endl;
> What am I doing wrong?
> Sorry if this should be a trivial question, but I don't know the answer.
> Thanks a lot!
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users