Advanced Search

Search Results (Searched for: )

  • cmorley
  • cmorley
30 Dec 2024 01:08
Replied by cmorley on topic qtvismach, a axis toolpath

qtvismach, a axis toolpath

Category: Qtvcp

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.
Displaying 20701 - 20701 out of 20701 results.
Time to create page: 1.114 seconds
Powered by Kunena Forum