How to rotate an object with respect to a coordinate system (WCS) other than the object's center?
-
Hello,
I have to rotate an object w.r.t. a Coordinate System (WCS), which is different from the main Coordinate System. But I can find the only rotate option under the Translation menu, where if I enter z = 30 deg, then it rotates the object w.r.t. to it's own center.
Can anyone please suggest how I can change the axis of rotation?Thanks.
-
I could figure out how to do it. The tutorial 'SAM Phantom with Generic Phone' helped.
Thanks.
@farhana
Hi,
Good to hear this. I am using the following line of code to rotate an object around an arbitrary point (Xcenter, Ycenter, Zcenter) with rotation angles (Xtheta, Ytheta, Ztheta).
This is more like a "Rotate" operation followed by a "Translate".Solid1.Transform = Transform( Vec3(1.0, 1.0, 1.0), Vec3(Xtheta, Ytheta, Ztheta), Vec3(Xcenter, Ycenter, Zcenter) )
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login