qtvismach, a axis toolpath

More
30 Dec 2024 01:08 #317648 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
I should have explained more.
point = [wx, wy, wz]
if not self.plotdata or point != self.plotdata[-1]:
self.plotdata.append(point)
This adds a plot point. We would need to change it to also add color.

point = [wx, wy, wz,color]
or maybe better:
self.plotdata.append([point, color])

then later in the file:
#GL.glColor3f(1.0, 0.5, 0.5)

GL.glBegin(GL.GL_LINE_STRIP)
for p,c in self.plotdata:
GL.glColor3f(*c)
GL.glVertex3f(*p)
GL.glEnd()

a few other initialization and clearing details to follow up. but that might work.

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

More
30 Dec 2024 07:31 #317656 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
Ok I pushed some work on this.

vismach_mill_xyz should show case it.

in your vismach script you need to add:
on top:
from qtvcp.core import Status
STATUS = Status()

and in the Window class:
        STATUS.connect('motion-type-changed', lambda w, data: v.choosePlotColor(data))
        # uncomment to change feed color and to see all colors
        #v.setColorsAttribute('FEED',(0,1,0))
        #print(v.colors)
The following user(s) said Thank You: tommylight, MarkoPolo

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

More
30 Dec 2024 23:13 #317692 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
The coloring of the movements works very well, that's what I wanted, thanks for another good job.

In my simulation, the "myhud" panel would be more to my liking in the upper right corner. How can I set this up?
Attachments:
The following user(s) said Thank You: tommylight

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

More
01 Jan 2025 21:24 #317801 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
It's hard coded to the left.
in halHud/hud draw() function defines it.

I'll look into it when I can.
The following user(s) said Thank You: MarkoPolo

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

More
03 Jan 2025 23:58 #317989 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
pushed to master:

myHud.display_on_right()

Leme know if there is any problem.

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

More
04 Jan 2025 20:04 #318120 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
Works very well, no problems.
Thanks
Attachments:

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

More
10 Feb 2025 18:35 #321178 by MarkoPolo
Replied by MarkoPolo on topic qtvismach, a axis toolpath
There is one problem after the last changes.

The tool trace disappears after 30 minutes.

It looks like the tool trace is constantly being saved, even though the machine and simulation are not making any movement. I think it is constantly saving to some buffer which, when filled, deletes the oldest content.

The screen in vismach is refreshed every 100ms, if I decrease this value, the trace will disappear earlier than 30 minutes.

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

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