View Single Post
  #2  
Old 10-02-2003, 01:36 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Howard,

The following example will rotate a model 45 degrees along the absolute y axis:
Code:
model.rotate(0,1,0,45,viz.RELATIVE)
The following example will rotate a model 45 degrees along its local y axis:
Code:
viz.rotate(model,viz.YAXIS,45)
If you need more advanced control you could use the Transform class. Here's a simple example:
Code:
import vizmat
X = vizmat.Transform()

X.makeRot(0,1,0,90)
X.postRot(0,1,45)

model.update(X)
Hope this helps!
Reply With Quote