#1
|
|||
|
|||
3d model rotation?
is there any way to rotate a 3d model? instead 'absolute' rotate, I need 'relative' rotate a 3d model imported from wrl fie.
Thanks in advance Howard |
#2
|
|||
|
|||
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) Code:
viz.rotate(model,viz.YAXIS,45) Code:
import vizmat X = vizmat.Transform() X.makeRot(0,1,0,90) X.postRot(0,1,45) model.update(X) |
#3
|
|||
|
|||
Hi, farshizzo
Yes, it's what I'm looking for. thank you. |
|
|