fix lathe preview lerp, gpu lathe end point, and index issues

This commit is contained in:
Stewart Allen 2025-12-09 00:21:26 -05:00
commit ad86c38d97
5 changed files with 37 additions and 48 deletions

View file

@ -233,6 +233,7 @@ export class Topo {
for (let i=0; i<pointsPerLine; i++) {
let slice = newSlice(i);
let points = rows.map(row => row[i]);
points.push(points[0].clone().setA(-360));
if (i % 2 === 1) points.reverse();
slice.index = i;
slice.camLines = [ newPolygon(points).setOpen() ];