Skip to content

Commit d6ff25e

Browse files
committed
add lines_index to line_start (duplicates index)
add lines_index to segments add layer_index to segments add layer_id to segments add lines_index to line_end (duplicates index)
1 parent 63ce88d commit d6ff25e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

vpype_gcode/gwrite.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
9797
line_start.format(
9898
index=lines_index,
9999
index1=lines_index + 1,
100+
lines_index=lines_index,
101+
lines_index1=lines_index + 1,
100102
layer_index=layer_index,
101103
layer_index1=layer_index + 1,
102104
layer_id=layer_id,
@@ -134,6 +136,11 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
134136
idx=idx,
135137
idy=idy,
136138
index=segment_index,
139+
lines_index=lines_index,
140+
lines_index1=lines_index + 1,
141+
layer_index=layer_index,
142+
layer_index1=layer_index + 1,
143+
layer_id=layer_id,
137144
)
138145
)
139146
last_x = x
@@ -143,6 +150,8 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
143150
line_end.format(
144151
index=lines_index,
145152
index1=lines_index + 1,
153+
lines_index=lines_index,
154+
lines_index1=lines_index + 1,
146155
layer_index=layer_index,
147156
layer_index1=layer_index + 1,
148157
layer_id=layer_id,

0 commit comments

Comments
 (0)