From: Randall H. <vi...@ch...> - 2005-02-20 01:49:46
|
In PyOSG, is there a more efficient way to initialize a matrix than setting all the elements individually?: m = osg.Matrix() for i in range(4): for j in range(4): m[ i*4+j ] = tf_m[i][j] xform = osg.MatrixTransform() xform.setMatrix( m ) I didn't see another way to hand-off a pre-defined matrix to an osg::MatrixTransform. Thanks, Randall |