Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/highlight.scad
- This file was added.
1 | /*Basic test file | ||||
---|---|---|---|---|---|
2 | Written by Julian Stirling, 2018 | ||||
3 | License: MIT*/ | ||||
4 | | ||||
5 | | ||||
6 | // This is a comment | ||||
7 | x=5; | ||||
8 | y=6; | ||||
9 | z=5; | ||||
10 | r=2; | ||||
11 | for (n = [-1.5:1:1.5]){ | ||||
12 | translate([n*x,0,0]){cubehole([x,y,z],r);} | ||||
13 | } | ||||
14 | | ||||
15 | module cubehole(size,holerad) | ||||
16 | { | ||||
17 | $fn=28; | ||||
18 | difference() | ||||
19 | { | ||||
20 | cube(size,center=true); | ||||
21 | cylinder(size[2]+1,r=holerad,center=true); | ||||
22 | } | ||||
23 | } | ||||
24 | No newline at end of file |