add index angle to slices and pass to client

This commit is contained in:
Stewart Allen 2025-12-14 23:00:10 -05:00
commit 24af93550d
2 changed files with 5 additions and 0 deletions

View file

@ -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);