Plot Preview

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
01 Jun 2024 14:03 #302057 by JT
Plot Preview was created by JT
I'm trying to figure out the simple way to show the plot preview in a QOpenGLWidget. I "think" I need to use gcode.parse() to get the end points of the lines (forget about arcs for now). So I modified the code from this post to be a bit simpler and up to date. It returns each line like straight_feed (2.375, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) so I assume somehow I can use that to plot the lines using OpenGl. I'm looking for a simple example  to guide me...

JT
Attachments:

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
01 Jun 2024 14:53 #302060 by JT
Replied by JT on topic Plot Preview
So changing my code a bit I can pull out the straight_feed or straight_traverse for the  X Y Z axes.

The oglw6-01.py plots a cube so I assume using some of that might work?

JT
 
Attachments:

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
01 Jun 2024 14:55 #302061 by JT
Replied by JT on topic Plot Preview
Actually oglw6-2.py is a better example as the mouse can rotate and zoom the cube.

JT
Attachments:

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

Time to create page: 0.068 seconds
Powered by Kunena Forum