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

Error message in rounded_cube #20

Closed andreaskielkopf closed 2 years ago

andreaskielkopf commented 2 years ago

i got an Error-message when using rounded_cube with an array:

rounded_cube(size=[20,20,20],corner_r=.5,center=false);

There seem to be 2 unnecessary lines in rounded_cube.scad:

half_l = half_x - edge_d;
half_w = half_y - edge_d;
half_h = half_z - edge_d;

// half_cube_leng = size / 2; // produced the error // half_leng = half_cube_leng - edge_d;

pair = [1, -1];
corners = [
    for(z = pair) 
JustinSDK commented 2 years ago

Thanks, deleted. :)