Added test for inner module variables

felipesanches-svg
Marius Kintel 2013-04-08 22:41:28 -04:00
parent 4f82bd21bb
commit 3307deee93
5 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
module mymodule(modparam) {
inner_variable = 23;
inner_variable2 = modparam * 2;
cylinder(r1=inner_variable, r2=inner_variable2, h=10);
}
mymodule(5);

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -0,0 +1,4 @@
group() {
cylinder($fn = 0, $fa = 12, $fs = 2, h = 10, r1 = 23, r2 = 10, center = false);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB