mirror of https://github.com/vitalif/openscad
Updated the include tests to provide geometry
parent
838f1fb8fc
commit
fab0f891b7
|
@ -1,4 +1,7 @@
|
||||||
module test6()
|
module test6()
|
||||||
{
|
{
|
||||||
echo("included from include test6.scad");
|
difference() {
|
||||||
|
cube(center=true);
|
||||||
|
cylinder(r=0.4, h=2, center=true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module test5()
|
module test5()
|
||||||
{
|
{
|
||||||
echo("included from include-test5.scad");
|
sphere(r=0.5, $fn=8);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,13 +28,13 @@ include <>
|
||||||
module test1()
|
module test1()
|
||||||
{
|
{
|
||||||
test2();
|
test2();
|
||||||
test3();
|
translate([2,0,0]) test3();
|
||||||
test4();
|
translate([2,-2,0]) test4();
|
||||||
test5();
|
translate([-2,0,0]) test5();
|
||||||
test6();
|
translate([-2,-2,0]) test6();
|
||||||
|
|
||||||
//Just to give a top level object
|
//Just to give a top level object
|
||||||
sphere(1);
|
translate([0,-2,0]) sphere(0.7, $fn=16);
|
||||||
}
|
}
|
||||||
|
|
||||||
test1();
|
test1();
|
|
@ -1,4 +1,4 @@
|
||||||
module test4()
|
module test4()
|
||||||
{
|
{
|
||||||
echo("included from include-test4.scad");
|
cylinder(r=0.5, $fn=10, center=true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,5 @@ include <../include-test4.scad>
|
||||||
|
|
||||||
module test2 ()
|
module test2 ()
|
||||||
{
|
{
|
||||||
echo("included from include-test2.scad");
|
cube(center=true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module test3()
|
module test3()
|
||||||
{
|
{
|
||||||
echo("included from include-test3.scad");
|
cylinder(r1=0.7, r2=0.2, center=true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue