-
Notifications
You must be signed in to change notification settings - Fork 28
/
config.py
31 lines (23 loc) · 828 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
''' Configuration file for SVG to GCODE converter
Date: 26 Oct 2016
Author: Peter Scriven
'''
'''G-code emitted at the start of processing the SVG file'''
preamble = "G28\nG1 Z0.0\nM05"
'''G-code emitted at the end of processing the SVG file'''
postamble = "G28"
'''G-code emitted before processing a SVG shape'''
shape_preamble = "G4 P0.2"
'''G-code emitted after processing a SVG shape'''
shape_postamble = "G4 P0.2\nM05"
# A4 area: 210mm x 297mm
# Printer Cutting Area: ~178mm x ~344mm
# Testing Area: 150mm x 150mm (for now)
'''Print bed width in mm'''
bed_max_x = 150
'''Print bed height in mm'''
bed_max_y = 150
''' Used to control the smoothness/sharpness of the curves.
Smaller the value greater the sharpness. Make sure the
value is greater than 0.1'''
smoothness = 0.2