Fixed the previous fix :)

This commit is contained in:
Elmom 2011-01-08 13:35:24 +02:00
parent 50e821e4a3
commit d21103e652

View file

@ -1,6 +1,7 @@
/* /*
* OpenSCAD Shapes Library (www.openscad.org) * OpenSCAD Shapes Library (www.openscad.org)
* Copyright (C) 2009 Catarina Mota * Copyright (C) 2009 Catarina Mota
* Copyright (C) 2010 Elmo Mäntynen
* *
* License: LGPL 2.1 or later * License: LGPL 2.1 or later
*/ */
@ -34,7 +35,7 @@ module box(width, height, depth,) {
// size is a vector [w, h, d] // size is a vector [w, h, d]
module roundedBox(width, height, depth, radius) { module roundedBox(width, height, depth, radius) {
size=[width, height, depth,] size=[width, height, depth,];
cube(size - [2*radius,0,0], true); cube(size - [2*radius,0,0], true);
cube(size - [0,2*radius,0], true); cube(size - [0,2*radius,0], true);
for (x = [radius-size[0]/2, -radius+size[0]/2], for (x = [radius-size[0]/2, -radius+size[0]/2],