[Qt_Vismach] STL file incorrectly centered
- RomeReactor
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 2
18 Mar 2022 00:46 #237594
by RomeReactor
[Qt_Vismach] STL file incorrectly centered was created by RomeReactor
Attachments:
Please Log in or Create an account to join the conversation.
18 Mar 2022 05:34 #237614
by cmorley
Replied by cmorley on topic [Qt_Vismach] STL file incorrectly centered
As far as I know, no the program assumes the origin is the center.
I am not very experienced with vismach though.
was your model of the chuck built with the origin in the middle?
I am not very experienced with vismach though.
was your model of the chuck built with the origin in the middle?
The following user(s) said Thank You: RomeReactor
Please Log in or Create an account to join the conversation.
- RomeReactor
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 2
18 Mar 2022 18:49 #237663
by RomeReactor
Replied by RomeReactor on topic [Qt_Vismach] STL file incorrectly centered
yes, the STL model is made in SOLIDWORK and we established the origin of the piece in the center
Please Log in or Create an account to join the conversation.
18 Mar 2022 19:40 #237668
by cmorley
Replied by cmorley on topic [Qt_Vismach] STL file incorrectly centered
maybe something like this (setting translate x y or z to the required offset)?
chuck = HalRotate([STL_part], None, "hal_pin_name", angle_scale, x, y, z)
chuck = Translate([chuck], x, y, z)
chuck = HalRotate([STL_part], None, "hal_pin_name", angle_scale, x, y, z)
chuck = Translate([chuck], x, y, z)
The following user(s) said Thank You: RomeReactor
Please Log in or Create an account to join the conversation.
19 Mar 2022 18:07 #237729
by cmorley
Replied by cmorley on topic [Qt_Vismach] STL file incorrectly centered
After thinking some more, you probably need to translate the part before adding the HAL rotate.
chuck = Translate([STL_part], x, y, z)
chuck = HalRotate([chuck], None, "hal_pin_name", angle_scale, x, y, z)
chuck = Translate([STL_part], x, y, z)
chuck = HalRotate([chuck], None, "hal_pin_name", angle_scale, x, y, z)
Please Log in or Create an account to join the conversation.
19 Mar 2022 22:54 #237753
by cmorley
Replied by cmorley on topic [Qt_Vismach] STL file incorrectly centered
maybe this thread will help?
forum.linuxcnc.org/38-general-linuxcnc-q...h-coordinate-systems
forum.linuxcnc.org/38-general-linuxcnc-q...h-coordinate-systems
The following user(s) said Thank You: RomeReactor
Please Log in or Create an account to join the conversation.
23 Mar 2022 00:30 #238058
by andypugh
Replied by andypugh on topic [Qt_Vismach] STL file incorrectly centered
Yes, translate first, then hal_rotate.
Though it might be tidier to move the model to the right place in the CAD.
Though it might be tidier to move the model to the right place in the CAD.
The following user(s) said Thank You: RomeReactor
Please Log in or Create an account to join the conversation.
- RomeReactor
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 2
23 Mar 2022 20:48 #238134
by RomeReactor
Replied by RomeReactor on topic [Qt_Vismach] STL file incorrectly centered
Attachments:
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
24 Mar 2022 05:08 #238191
by cmorley
Replied by cmorley on topic [Qt_Vismach] STL file incorrectly centered
Thanks for confirming the procedure. Very nice.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.100 seconds