Fixed the API of box and roundedBox
This commit is contained in:
parent
25b184e252
commit
50e821e4a3
|
@ -28,12 +28,13 @@
|
|||
//----------------------
|
||||
|
||||
// size is a vector [w, h, d]
|
||||
module box(size) {
|
||||
cube(size, true);
|
||||
module box(width, height, depth,) {
|
||||
cube([width, height, depth,], true);
|
||||
}
|
||||
|
||||
// size is a vector [w, h, d]
|
||||
module roundedBox(size, radius) {
|
||||
module roundedBox(width, height, depth, radius) {
|
||||
size=[width, height, depth,]
|
||||
cube(size - [2*radius,0,0], true);
|
||||
cube(size - [0,2*radius,0], true);
|
||||
for (x = [radius-size[0]/2, -radius+size[0]/2],
|
||||
|
|
Loading…
Reference in a new issue