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.