Added difference-tests

stl_dim
Marius Kintel 2011-09-02 14:38:27 +02:00
parent 8e0651afd4
commit a20c08b8ce
3 changed files with 25 additions and 3 deletions

View File

@ -1,4 +1,25 @@
difference() {
sphere(3);
cube([3,3,8], center=true);
cube([10,10,10], center=true);
cylinder(r=4, h=20, center=true);
}
translate([12,0,0]) difference() {
cube([10,10,10], center=true);
cylinder(r=4, h=10, center=true);
}
translate([0,12,0]) difference() {
cube([10,10,10], center=true);
cylinder(r=4, h=11, center=true);
rotate([0,90,0]) cylinder(r=4, h=11, center=true);
}
translate([12,12,0]) difference() {
cube([10,10,10], center=true);
translate([0,0,7]) cylinder(r=4, h=4, center=true);
}
translate([24,0,0]) difference() {
cube([10,10,10], center=true);
translate([0,0,6.99]) cylinder(r=4, h=4, center=true);
}

View File

@ -207,7 +207,8 @@ LIST(APPEND CGALPNGTEST_FILES
${CMAKE_SOURCE_DIR}/../testdata/scad/features/cube-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/sphere-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/cylinder-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/union-tests.scad)
${CMAKE_SOURCE_DIR}/../testdata/scad/features/union-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/difference-tests.scad)
#LIST(APPEND CGALPNGTEST_FILES ${CMAKE_SOURCE_DIR}/../examples/example001.scad)
add_cmdline_test(cgalpngtest png ${CGALPNGTEST_FILES})

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB