I'm writing a prototype OSG to Radiance exporter in Python. I've got to
the point of code that iterates over all geodes in the scene graph.
Problem is--then what? Is the only way to read the elements of the
arrays ctype and pointers? Or is there something a bit simpler and safer?
Perhaps-relevant bit of code:
def apply_Geode(self,ge):
for i in range(ge.getNumDrawables()):
geom = ge.getDrawable(i).asGeometry()
if geom:
arr = geom.getVertexArray()
for i in range(arr.getNumElements()):
# This doesn't seem to work--what does?
arr.accept(i,self.val)
--
Randolph Fritz
design machine group
architecture department
university of washington
[email protected]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org