Calling pfGeoSet::setAttr Twice

New Message Reply Date view Thread view Subject view Author view

From: Chad Wingrave (cwingrav++at++vt.edu)
Date: 10/18/2000 12:07:24


I am trying to change the color of an object. The object was a
Wavefront (.obj) file loaded with pfdLoadFile and when I do the
following, it does not redraw as the new color. I can read back the
data using pfGeoSet::getAttrLists and it shows that the values are set
to the new color.

pfGeode *t;
pfGeoSet *tt;
pfVec4 *color;

t = (pfGeode*)obj;
tt = t->getGSet(0);
color = new pfVec4(1.0,0.0,0.0,1.0);
tt->setAttr(PFGS_COLOR4,PFGS_OVERALL,(void*)color,NULL);

Also, I get the same thing with pfGeoSet::setDrawMode setting the
wireframe mode and it then not being able to turn off.

What am I doing that does not allow the shape to realize that it has
been changed and need to redo its color?

    -chad


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Oct 18 2000 - 22:08:48 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.