JustinSDK / dotSCAD

Reduce the burden of mathematics when playing OpenSCAD
https://openhome.cc/zh-tw/openscad/
GNU Lesser General Public License v3.0
784 stars 107 forks source link

path_extrude.scad : scale parameter ignored for first sweep #26

Closed jsteele22 closed 2 years ago

jsteele22 commented 2 years ago

Just discovered dotSCAD, and I'm loving it. But on to a little issue I tripped upon....

Looking at the docs, I would expect the following code would produce a sweep of three rectangles that get progressively larger from top to bottom. But the first 2 sections are identical. In fact, if one of member of points[] is removed, the shape is a cube.

use <path_extrude.scad>;

w=8;
h=3;

rect = [
    [   -w/2,   -h/2,   0],
    [   +w/2,   -h/2,   0],
    [   +w/2,   +h/2,   0],
    [   -w/2,   +h/2,   0],
];

points = [
    [0,0, 10],
    [0,0, 5],
    [0,0,0]
];

path_extrude(   shape_pts = rect,
                path_pts = points,
                scale = 1.5);
JustinSDK commented 2 years ago

Thanks for reporting the issue. It's fixed. :)