removing controls on left for now

main
unknown 2022-03-09 22:27:53 -06:00
rodzic a6f4c1d7ae
commit ff5121c111
2 zmienionych plików z 53 dodań i 24 usunięć

Wyświetl plik

@ -1,3 +1,25 @@
######################################
# Title
######################################
CNC routers may be harder to use than 3D printers, can a cut preview help?
Printers have a print preview, should CNC routers have a cut preview?
3d printers
######################################
# Introduction
######################################
# What if you could click on this image and have the CNC machine move to
location you clicked on?
# What if you could load your GCODE on this image and place it anywhere on
your machine bed?
# What if you could rotate it if needed and move cut paths arround to fit on
the workpiece without re-exporting the GCODE?
# All this and more has been prototyped and is possible, and I'll show you how
and demo it in this video.
######################################
# Motivation
######################################
Where is my CNC router going to cut? Where is my CNC router going to cut?
Am I going to run into a clamp? Am I going to run into a clamp?
Am I cutting on my workpiece? Am I cutting on my workpiece?
@ -7,8 +29,15 @@ Where is my CNC router going to cut?
each pixel in the view. each pixel in the view.
Can draw directly on top of image to do on the spot cutting Can draw directly on top of image to do on the spot cutting
######################################
# Show it cutting
######################################
# Show it homing
# Show it zeroing on the z plate
# Re show the overlay onto the workpiece
# Show it cutting
CNC routers may be harder to use than 3D printers, can a cut preview help? ######################################
Printers have a print preview, should CNC routers have a cut preview? # How it works
3d printers ######################################

Wyświetl plik

@ -317,29 +317,29 @@ class OverlayGcode:
############################################### ###############################################
# Generate controls for plot # Generate controls for plot
############################################### ###############################################
xAxes = plt.axes([0.01, 0.8, 0.2, 0.04]) #xAxes = plt.axes([0.01, 0.8, 0.2, 0.04])
self.xBox = TextBox(xAxes, "xOffset (in)", initial="0") #self.xBox = TextBox(xAxes, "xOffset (in)", initial="0")
label = self.xBox.ax.get_children()[1] # label is a child of the TextBox axis #label = self.xBox.ax.get_children()[1] # label is a child of the TextBox axis
label.set_position([0.5,1]) # [x,y] - change here to set the position #label.set_position([0.5,1]) # [x,y] - change here to set the position
label.set_horizontalalignment('center') #label.set_horizontalalignment('center')
label.set_verticalalignment('bottom') #label.set_verticalalignment('bottom')
self.xBox.on_submit(self.onUpdateXOffset) #self.xBox.on_submit(self.onUpdateXOffset)
yAxes = plt.axes([0.01, 0.7, 0.2, 0.04]) #yAxes = plt.axes([0.01, 0.7, 0.2, 0.04])
self.yBox = TextBox(yAxes, "yOffset (in)", initial="0") #self.yBox = TextBox(yAxes, "yOffset (in)", initial="0")
label = self.yBox.ax.get_children()[1] # label is a child of the TextBox axis #label = self.yBox.ax.get_children()[1] # label is a child of the TextBox axis
label.set_position([0.5,1]) # [x,y] - change here to set the position #label.set_position([0.5,1]) # [x,y] - change here to set the position
label.set_horizontalalignment('center') #label.set_horizontalalignment('center')
label.set_verticalalignment('bottom') #label.set_verticalalignment('bottom')
self.yBox.on_submit(self.onUpdateYOffset) #self.yBox.on_submit(self.onUpdateYOffset)
rAxes = plt.axes([0.01, 0.6, 0.2, 0.04]) #rAxes = plt.axes([0.01, 0.6, 0.2, 0.04])
self.rBox = TextBox(rAxes, "rotation (deg)", initial="0") #self.rBox = TextBox(rAxes, "rotation (deg)", initial="0")
label = self.rBox.ax.get_children()[1] # label is a child of the TextBox axis #label = self.rBox.ax.get_children()[1] # label is a child of the TextBox axis
label.set_position([0.5,1]) # [x,y] - change here to set the position #label.set_position([0.5,1]) # [x,y] - change here to set the position
label.set_horizontalalignment('center') #label.set_horizontalalignment('center')
label.set_verticalalignment('bottom') #label.set_verticalalignment('bottom')
self.rBox.on_submit(self.onUpdateRotation) #self.rBox.on_submit(self.onUpdateRotation)
cid = fig.canvas.mpl_connect('button_press_event', self.onclick) cid = fig.canvas.mpl_connect('button_press_event', self.onclick)
cid = fig.canvas.mpl_connect('button_release_event', self.onrelease) cid = fig.canvas.mpl_connect('button_release_event', self.onrelease)