This commit is contained in:
2019-06-04 12:52:01 -07:00
parent 4689010db7
commit 95ddee8f1d
2 changed files with 12 additions and 5 deletions

15
main.py
View File

@@ -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()
if __name__ == "__main__":
Tracer()
# settings = Settings()
# print(triangulate_lengths(settings, (350, 0)))
# print(triangulate_lengths(settings, (300, 300)))
if __name__ == "__main__":
Tracer()