Updated the include tests to provide geometry

stl_dim
Marius Kintel 2011-09-08 02:31:27 +02:00
parent 838f1fb8fc
commit fab0f891b7
6 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,7 @@
module test6()
{
echo("included from include test6.scad");
difference() {
cube(center=true);
cylinder(r=0.4, h=2, center=true);
}
}

View File

@ -1,4 +1,4 @@
module test5()
{
echo("included from include-test5.scad");
sphere(r=0.5, $fn=8);
}

View File

@ -28,13 +28,13 @@ include <>
module test1()
{
test2();
test3();
test4();
test5();
test6();
translate([2,0,0]) test3();
translate([2,-2,0]) test4();
translate([-2,0,0]) test5();
translate([-2,-2,0]) test6();
//Just to give a top level object
sphere(1);
translate([0,-2,0]) sphere(0.7, $fn=16);
}
test1();

View File

@ -1,4 +1,4 @@
module test4()
{
echo("included from include-test4.scad");
cylinder(r=0.5, $fn=10, center=true);
}

View File

@ -6,5 +6,5 @@ include <../include-test4.scad>
module test2 ()
{
echo("included from include-test2.scad");
cube(center=true);
}

View File

@ -1,4 +1,4 @@
module test3()
{
echo("included from include-test3.scad");
cylinder(r1=0.7, r2=0.2, center=true);
}