diff --git a/autotests/input/highlight.scad b/autotests/input/highlight.scad new file mode 100644 --- /dev/null +++ b/autotests/input/highlight.scad @@ -0,0 +1,23 @@ +/*Basic test file +Written by Julian Stirling, 2018 +License: MIT*/ + + +// This is a comment +x=5; +y=6; +z=5; +r=2; +for (n = [-1.5:1:1.5]){ + translate([n*x,0,0]){cubehole([x,y,z],r);} +} + +module cubehole(size,holerad) +{ + $fn=28; + difference() + { + cube(size,center=true); + cylinder(size[2]+1,r=holerad,center=true); + } +} \ No newline at end of file diff --git a/data/syntax/openscad.xml b/data/syntax/openscad.xml --- a/data/syntax/openscad.xml +++ b/data/syntax/openscad.xml @@ -1,7 +1,7 @@ - +