qtvismach, a axis toolpath

More
10 Dec 2024 03:40 #316365 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
Is it a subtle difference? I don't see a difference in zooming with your changes.
It certainly didn't hurt anything ti have it in.

Please Log in or Create an account to join the conversation.

More
10 Dec 2024 11:08 #316395 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
The difference may not be very big, but it is noticeable. Now, when the zoom is near the maximum, then you have to turn the mouse wheel a lot to achieve the maximum zoom, because smaller and smaller numbers are multiplied or divided, near the maximum zoom. With such a correction, achieving the maximum zoom is much easier. I tested it on various machine simulations, and it is always better with the correction.

I have another problem with qt_vismach.

Sometimes I use the A axis, and sometimes I don't. When I don't use it, I want the entire A axis not to be displayed. For now, using the hal pin, I hide the entire A axis under the machine table. The only problem is that the tool trace is drawn anyway. The best solution would be to exclude the A axis from the Collection.

How to dynamically, without restarting vismach, get rid of "axisA" from this line?
base = Collection([geszt, work, axisA])
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Dec 2024 18:54 #317100 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
Hi Chris

Have you looked at my problem?
I have another idea, a request..

Please Log in or Create an account to join the conversation.

More
21 Dec 2024 19:46 - 21 Dec 2024 19:46 #317102 by Aciera
Replied by Aciera on topic qtvismach, a axis toolpath
Another way to show/hide objects is to apply a scale factor of 1/0 according to the state of a hal pin (not sure if that works for the tool trace though):

github.com/LinuxCNC/linuxcnc/blob/master.../twp_vismach.py#L210
Last edit: 21 Dec 2024 19:46 by Aciera.

Please Log in or Create an account to join the conversation.

More
21 Dec 2024 19:58 #317104 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
Try this modified primative.py
It adds a new function HideCollection([part],component, pinname)

used something like this:

comp.newpin("hide-chuck", hal.HAL_BIT, hal.HAL_IN)
<snip make a machine with a A axis chuck>
chuckassembly = HideCollection([chuckassembly],comp,'hide-chuck')
Attachments:
The following user(s) said Thank You: MarkoPolo

Please Log in or Create an account to join the conversation.

More
21 Dec 2024 23:24 #317115 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
I tested it and it works, thanks a lot for the good work.

After turning off the A axis, the tool path escapes towards coordinates 0, as in the screenshot, but this can be cleared by double-clicking the mouse.

An idea and a request to do one more thing.
I would like to be able to configure the color of the tool path depending on the type of movement g0, g1, maybe others..
Preferably with an alpha channel, so that individual path colors can be turned off and on.
Attachments:

Please Log in or Create an account to join the conversation.

More
22 Dec 2024 06:49 #317127 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
A little more difficult, as vismach doesn't know anything about the type of move, only that it has moved. I'll experiment a bit.

It sure seems useful if vismach and the normal plotter could be combined.

Please Log in or Create an account to join the conversation.

More
22 Dec 2024 11:07 #317133 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
I tried in qt_vismach.py ​​in the same way as in the screenshot, but then the color of the entire generated path changes depending on the type of movement. 
Maybe draw separate paths for each color, then it will be easier to turn off the selected path?
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Dec 2024 01:02 #317168 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
I think we would have to add the motion color into the plot point.
(qt_mismach.py line 287 ish)
        # wx, wy, wz are the values to use for backplot
        # so we save them in a buffer
        if len(self.plotdata) == self.plotlen:
            del self.plotdata[:self.plotlen // 10]
        point = [wx, wy, wz]
        if not self.plotdata or point != self.plotdata[-1]:
            self.plotdata.append(point)

Please Log in or Create an account to join the conversation.

More
29 Dec 2024 22:07 #317646 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
I have tried various ways to use this code, but so far no results..

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.074 seconds
Powered by Kunena Forum