File: let-module-tests-expected.ast

package info (click to toggle)
openscad 2021.01-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (17 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Parameter("")
a = 1;
//Parameter("")
b = 2;
//Parameter("")
c = 3;
echo(a, b, c);
let(a = 5, b = (a + 8), c = (a + b)) {
	echo(a, b, c);
	difference() {
		cube([a, b, c], center = true);
		let(b = (2 * a), c = (b * 2)) {
			echo(a, b, c);
			rotate([0, 90, 0]) cylinder(d = b, h = c, center = true);
		}
	}
}