master^2
mitchellhansen 6 years ago
parent 4689010db7
commit 95ddee8f1d

@ -45,6 +45,8 @@ class Svg2GcodeConverter:
G1 Z1 ; Lift head by 1
G0 F{1} ; Set the feed rate
G1 Z{0} ; Move the pen to just above the paper
G90
G92 X337.87 Y372.36
'''.format(1, self.settings.speed)
self.gcode_end = '''

@ -6,7 +6,7 @@ from PIL import Image, ImageTk
import os
from GCodeRenderer import Renderer
from Svg2GcodeConverter import Svg2GcodeConverter
from Svg2GcodeConverter import Svg2GcodeConverter, triangulate_lengths, untriangulate_lengths
from ImageConverter import ImageConverter
from Simulator import Simulator
@ -19,8 +19,8 @@ class Settings:
# ============ HARDCODED VALUES ===========
# Canvas size
self.canvas_x = 700
self.canvas_y = 700
self.canvas_x = 300
self.canvas_y = 300
# The position of the pulley centers in relation to the top left and right of the canvas
self.left_pulley_x_offset = -40
@ -167,6 +167,11 @@ class Tracer(Tk):
simulator = Simulator()
simulator.render()
# settings = Settings()
# print(triangulate_lengths(settings, (350, 0)))
# print(triangulate_lengths(settings, (300, 300)))
if __name__ == "__main__":
Tracer()
Tracer()

Loading…
Cancel
Save