mirror of https://github.com/vitalif/openscad
Added test for inner module variables
parent
4f82bd21bb
commit
3307deee93
|
@ -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 |
|
@ -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 |
Loading…
Reference in New Issue