Rotate around specific point GDL
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-14 10:14 AM
2015-10-14
10:14 AM
Is there any way to rotate model around specific point?
When I use this code, when i use tilt. The head don't rotate from the point I thought it would.
Please help me.
"
rotz Rot_z+180
rotx 180
roty tiltBeam
add -0.1035016104579/2,-0.1035016104579/2,0.1
call "Bolt_3D_HEAD_03",
PARAMETERS A = 0.1035016104579, B = 0.1035016104579, ZZYZX = 0.1201913133264"
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-14 11:01 AM
2015-10-14
11:01 AM
What you are doing is rotating your object and then moving it (ADD) away from you point of rotation.
This means it will end up in a different position based on your rotation.
If you want it to remain in one place then move it there first and then do the rotation.
Barry.
This means it will end up in a different position based on your rotation.
If you want it to remain in one place then move it there first and then do the rotation.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-14 11:55 AM
2015-10-14
11:55 AM
Barry wrote:I don't realy understand. But I have change some of the code.
What you are doing is rotating your object and then moving it (ADD) away from you point of rotation.
This means it will end up in a different position based on your rotation.
If you want it to remain in one place then move it there first and then do the rotation.
Barry.
But the rotate specific point is wrong.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-14 09:34 PM
2015-10-14
09:34 PM
Hi.
I think the problem is in the called object. It looks like the origin point in the object (the blue dot in last picture I think) is not the point you want it to rotate about (the red dot). You have a few options:
1. Edit the called object so that the point of insertion is the point to be rotated about (in the called object use ADD to move the coordinate system so the object will move rotate this point... in other words, center your called object)
2. Know the offset that you have in your called object and move the origin point and rotate the coordinate system before each time you call it.
3. Do the above in a loop for the number of times you will call the object.
Hope that gives you a few ideas.
Best regards.
I think the problem is in the called object. It looks like the origin point in the object (the blue dot in last picture I think) is not the point you want it to rotate about (the red dot). You have a few options:
1. Edit the called object so that the point of insertion is the point to be rotated about (in the called object use ADD to move the coordinate system so the object will move rotate this point... in other words, center your called object)
2. Know the offset that you have in your called object and move the origin point and rotate the coordinate system before each time you call it.
3. Do the above in a loop for the number of times you will call the object.
Hope that gives you a few ideas.
Best regards.