From: Kuzminski, S. R <SKu...@fa...> - 2004-04-21 18:08:06
|
Hi, =20 If I rotate a shape, I seem to get an odd axis value after the rotation.. =20 here is a simple program... =20 from visual import * =20 shape =3D cylinder( pos=3D( 0, 0, 0 ), length=3D.1, radius=3D.01 ) print 'before', shape.axis shape.rotate( angle=3Dpi/2, axis=3D(0,0,1)) print 'after', shape.axis =20 =20 and here is the output.. shouldn't 'after' be [0, 0.1, 0] am I missing something? =20 =20 C:\>python tmp.py Visual-2003-10-05 before [0.1 0 0] after [6.12303e-018 0.1 0] <-- ??? =20 =20 thanks, Stefan =20 |