-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:bbaudry/swart-studio
- Loading branch information
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[gwrite.idrawv2] | ||
unit = "mm" | ||
document_start = """(document_start) | ||
G21 ; Set Units to Millimeters | ||
G17 ; Set Plane Selection to XY | ||
G90 ; Set Absolute Positioning | ||
F5000 ; Set Speed to 2500 mm/min | ||
G00 Z0 ; pen up | ||
G00 X0 Y0 ; go to 0,0 | ||
""" | ||
layer_start = """(Start Layer) | ||
""" | ||
line_start = """(line_start) | ||
; nothing we'll pendown after segment first | ||
"""" | ||
line_end = """(line_end) | ||
G00 Z0 | ||
""" | ||
#a line is composed of segments | ||
#segment_first is the command for the first line of a line | ||
segment_first = """(segment_first) | ||
G00 Z0 | ||
G0 X{x:.4f}f Y{y:.4f} | ||
G00 Z5 | ||
""" | ||
segment = """(segment) | ||
G01 X{x:.4f} Y{y:.4f} | ||
""" | ||
document_end = """(document_end) | ||
G00 X0.0000 Y0.0000 | ||
""" | ||
invert_y = true |