qtvismach, a axis toolpath

More
2 years 7 months ago #295430 by MarkoPolo
I did simulations of my xyza machine and I have a problem with the tool trace in the A axis. I would like the entire tool path to rotate around the A axis, which would result in drawing a milled solid.
Does anyone have a qtvismach file with a similar configuration as an example that would help me configure it properly?

The second problem is the transparency of the solid.
e.g. "solid = Color([1, 0.6, 0.6, 0.5],[solid])" I think the third parameter 0.5 should be the color opacity or transparency value, but it doesn't work.
Is it possible to make semi-transparent objects in qtvismach?

Marek

 

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

More
2 years 7 months ago #295441 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
I needed to modify primitives.py Color class for transparency:
Code:
class Color(Collection):     def __init__(self, color, parts):         self.color = color         Collection.__init__(self, parts)     def apply(self):         GL.glPushAttrib(GL.GL_LIGHTING_BIT)         GL.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT_AND_DIFFUSE, self.color)         if self.color[3] < 1:             GL.glEnable(GL.GL_BLEND)             GL.glBlendColor(0, 0, 0, self.color[3])  # rgba     def unapply(self):         GL.glPopAttrib()         GL.glDisable(GL.GL_BLEND) The the alpha setting is honoured. Does mill turn not help with the A axis?

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

More
2 years 7 months ago - 2 years 7 months ago #295442 by Aciera
Replied by Aciera on topic qtvismach, a axis toolpath

I would like the entire tool path to rotate around the A axis, which would result in drawing a milled solid.
Does anyone have a qtvismach file with a similar configuration as an example that would help me configure it properly?

If you mean the tool path to be drawn wrapped around a zylinder, this is currently not possible. All the logger, that is used to draw the toolpath history, does is collect collect coordinate values. It has no concept of a rotational center at all.
Last edit: 2 years 7 months ago by Aciera.

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

More
2 years 7 months ago #295464 by MarkoPolo
I modified the primitives.py file, but it didn't change anything, there is no transparency. I tested on various configurations. Is there anything else that needs to be modified?

As for the tool trace, the lathe configuration does not change anything either.
In this video you can see that the tool path rotates around the C axis, so I think it can be done.

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

More
2 years 7 months ago #295469 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
well aside from setting the color opacity of the part like you showed, but the opacity is  1.0 most clear - 0 solid.
that does seem back wards so you could change the code a bit to do the opposite.:
Code:
        if self.color[3] < 1:             GL.glEnable(GL.GL_BLEND)             GL.glBlendColor(0, 0, 0, 1 - self.color[3])  # rgba

You can see the A axis spindle is see through.
 

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

More
2 years 7 months ago - 2 years 7 months ago #295477 by MarkoPolo
Well, it actually works for you.
I check on two virtual machines and one real machine, but it doesn't work on either of them.
This is not a fourth value problem, because I have different values entered in different objects.
In the /usr/bin/millturngui simulation I also changed the fourth value, with no effect.
I don't know what the problem could be

edition
Yes, /usr/bin/millturngui is in TK, but qtvcp vismach_millturn doesn't work either
Last edit: 2 years 7 months ago by MarkoPolo.

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

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