Remove apply_list(). Renamed affine_frame_map() to affine3d_frame_map()

This commit is contained in:
Garth Minette
2021-01-20 13:36:41 -08:00
parent c36ddcf11a
commit b6cfda0537
6 changed files with 42 additions and 85 deletions

View File

@@ -980,13 +980,10 @@ module spiral_sweep(poly, h, r, twist=360, center, d, anchor, spin=0, orient=UP)
dx = r*cos(a),
dy = r*sin(a),
dz = h * (p/steps),
pts = apply_list(
poly, [
affine3d_xrot(90),
affine3d_zrot(a),
affine3d_translate([dx, dy, dz-h/2])
]
)
mat = affine3d_translate([dx, dy, dz-h/2]) *
affine3d_zrot(a) *
affine3d_xrot(90),
pts = apply(mat, poly)
) for (pt = pts) pt
];