You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Vpype plugin to generate gcode and other text output.
3
3
See: https://github.com/abey79/vpype
4
4
5
5
6
-
Gcode vpype plugin. Write gcode files for the vpype pipeline. The output format can be customized by the user heavily to an extend that you can also output non gcode ascii text files.
6
+
Gcode vpype plugin. Write gcode files for the vpype pipeline. The output format can be customized by the user heavily to an extent that you can also output non gcode ascii text files.
7
7
8
8
*`gwrite` write geometries as gcode to a file
9
9
@@ -81,13 +81,13 @@ These parameters define the transformation between *vpype*'s and the target's co
81
81
-`offset_y`: Apply an offset to the Y axis. This offset is expressed in the unit defined by `unit`.
82
82
83
83
### Output Format
84
-
All of the options below default to an empty text which means no output is generated. However, if `segment_first` or `segment_last` is omitted the code from `segment` is used. If there is only one segment.`segment_first` takes priority over `segment_last`.
85
-
-`document_start`: Output to be generated at the start of the file as a document_start
86
-
-`document_end`: Output to be generated at the end of the file as a document_end
87
-
-`layer_start`: Output to be generated before a layer is started
84
+
All of the options below default to an empty text which means no output is generated. However, if `segment_first` or `segment_last` is omitted the code from `segment` is used. If there is only one segment,`segment_first` takes priority over `segment_last`.
85
+
-`document_start`: Output to be generated at the start of the file as a document_start.
86
+
-`document_end`: Output to be generated at the end of the file as a document_end.
87
+
-`layer_start`: Output to be generated before a layer is started.
88
88
-`layer_end`: Output to be generated after a layer is finished.
89
89
-`layer_join`: Output to be generated between two layers.
90
-
-`line_start`: Output to be generated before a line is started
90
+
-`line_start`: Output to be generated before a line is started.
91
91
-`line_end`: Output to be generated after a line is finished.
92
92
-`line_join`: Output to be generated between two lines.
93
93
-`segment_first`: Output to be generated at the first coordinate pair.
@@ -97,8 +97,8 @@ All of the options below default to an empty text which means no output is gener
97
97
### Segment formatting
98
98
`gwrite` uses `.format()` encoding which means that data elements must be encapsulated in `{}` brackets. This provides a particular syntax token which differs from between elements.
99
99
For example every element except `layer_join` and `segment_join` accepts the value of `index`. You would encode that in the text as `{index:d}` the d denotes an integer value. If you need to have a `{` value in your text you would encode that as `{{` likewise you would encode a `}` as `}}`.
100
-
-`layer_start`: Accepts `index` the current layer number.
101
-
-`layer_end`: Accepts `index` the current layer number.
100
+
-`layer_start`: Accepts `index` the current layer number and `layer_id` as vpype layer ID.
101
+
-`layer_end`: Accepts `index` the current layer number and `layer_id` as vpype layer ID.
102
102
-`line_start`: Accepts `index` the current line number.
103
103
-`line_end`: Accepts `index` the current line number.
0 commit comments