mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
handle scalar scale case
This commit is contained in:
parent
5d30951ef1
commit
3ce62afcd4
1 changed files with 2 additions and 3 deletions
|
@ -1794,9 +1794,8 @@ module path_sweep(shape, path, method="incremental", normal, closed, twist=0, tw
|
|||
symmetry, last_normal, tangent, uniform, relaxed, caps, style, transforms=true,_return_scales=true);
|
||||
transforms = trans_scale[0];
|
||||
scales = trans_scale[1];
|
||||
firstscale = [1/scales[0].x, 1/scales[0].y];
|
||||
lastscale = [1/last(scales).x, 1/last(scales).y];
|
||||
echo(scales=firstscale,lastscale);
|
||||
firstscale = is_num(scales[0]) ? 1/scales[0] : [1/scales[0].x, 1/scales[0].y];
|
||||
lastscale = is_num(last(scales)) ? 1/last(scales) : [1/last(scales).x, 1/last(scales).y];
|
||||
vnf = sweep(is_path(shape)?clockwise_polygon(shape):shape, transforms, closed=false, caps=caps,style=style);
|
||||
shapecent = point3d(centroid(shape));
|
||||
$transforms = transforms;
|
||||
|
|
Loading…
Reference in a new issue