Geode has a getNumDrawables() method, and a getDrawable() method. Using
these two methods, you need to iterate over the Drawables stored in your
Geode. For each one, dynamic_cast it to a Geometry. Once you've done that,
you can setColorArray() on the Geometry to replace the entire color array,
or you can getColorArray() to get a reference to the existing color array
and tweak individual colors within it.
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
303 859 9466


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Kuhn
> Sent: Friday, January 19, 2007 11:40 AM
> To: osg users
> Subject: [osg-users] Attach to Geometry
> 
> 
> Hi,
> I have a method that finds Nodes in a tree. After I have 
> found the right node in my tree I want to change the 
> colorarray of my Geometry.
> The Geometry object is subordinate to the Geode and Node.
> 
> Can anybody help me?
> 
> Thanks
> Sascha
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to