rotate a GTS surface
hi, i import a gts surface. I'm able to translate it but i'm not able to rotate. i would like to rotate this surface about 90 degrees around x axes, and then about 180 degrees around y axis. I tryied with this code only for the first rotation (x axes), but it doesn't work. I used rotation engine but i have the following error:
Traceback (most recent call last):
File "/usr/bin/yade", line 182, in runScript
execfile(
File "creazione.py", line 31, in <module>
zeroPoint=
TypeError: No registered converter was able to produce a C++ rvalue of type std::vector<int, std::allocator<int> > from this Python object of type gts.Surface
this is the code: is really simply till now and i used the trunk example:
#######
#######
from yade import pack,qt
import gts, locale
locale.
s1=gts.
s2=gts.Surface(); s2.translate(
O.bodies.
O.bodies.
rotvel=100
O.engines=[
RotationEngine(
ids=s2,
angularVelocity
rotationAxis=
rotateAroundZer
label='srotation',
zeroPoint=(0,0,0)),
]
i know that using this way i'll not be able to stop it when the surface rotated exacly of 90 degree, but i want to go by step. Before, i want to be able to start this rotation, then i'll see how can i stop it. I saw some questions on Lounchpad that could help me. If you think exist an easier way, please tell me.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask jacopo for more information if necessary.