add index angle to slices and pass to client
This commit is contained in:
parent
c61fadd68b
commit
24af93550d
2 changed files with 5 additions and 0 deletions
|
|
@ -294,6 +294,9 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
|
|||
}
|
||||
sliceAll.appendAll(slices);
|
||||
if (addIndexing && axisIndex !== undefined) {
|
||||
for (let slice of slices) {
|
||||
slice.angle = axisIndex;
|
||||
}
|
||||
// update slice cam lines to add axis indexing
|
||||
for (let slice of slices.filter(s => s.camLines)) {
|
||||
addPolyIndexing(slice.camLines, -axisIndex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue