Chemical Forum

 Retrieve Password
 Register Now
!show!: 112|Reply: 1

surfaceTransformPoints -rotate [Copy URL]

Rank: 8Rank: 8

Post time 2013-3-11 21:16:28 |Show all posts

Dear Foarmers
I have a problem with the next command: surfaceTransformPoints
I can rotate the stl using
surfaceTransformPoints cad.stl cad-r.stl -yawPitchRoll "(0 -5 0)"
but if i want to rotate the stl from another point different (0,0,0), example rotate the stl from to (0 2.5 0) how i can do it.
Thanks in advanced

Use magic Report

Rank: 8Rank: 8

Post time 2013-3-11 21:16:29 |Show all posts

Greetings ynos,You'll have to do it in multiple runs. This is because surfaceTransformPoints (as well as transformPoints)was designed to do basic space transformations, one at a time. Additionally, there is (or at least was) a known bug where for rotating 180 degrees it requires that we do 2 runs of 90 degrees each... or something like that.

So - if I understood you correctly - in your case:

Translate points, so that the new origin coincides with the rotation center you want.
Rotate points, as you intended.
Translate back again, using the opposite vector used for the first step.
Best regards,
Bruno

Use magic Report

You have to log in before you can reply Login | Register Now

Archiver|Chemical Forum

GMT+8, 2014-10-25 17:24 , Processed in 0.078534 second(s), 10 queries .

Powered by chemical forum

Top