Added union-tests

stl_dim
Marius Kintel 2011-09-02 14:31:56 +02:00
parent e2da24871d
commit 8e0651afd4
3 changed files with 31 additions and 1 deletions

29
testdata/scad/features/union-tests.scad vendored Normal file
View File

@ -0,0 +1,29 @@
translate([-12,0,0]) union() {
cube([10,10,10]);
translate([4,4,8]) cube([2,2,10]);
}
union() {
cube([10,10,10]);
translate([0,0,10]) cube([2,2,10]);
}
translate([12,0,0]) union() {
cube([10,10,10]);
translate([0,0,11]) cube([2,2,10]);
}
translate([24,0,0]) union() {
cube([10,10,10]);
translate([4,4,10]) cube([2,2,10]);
}
translate([-12,12,0]) union() {
cube([10,10,10]);
translate([-2,10,10]) cube([2,2,10]);
}
translate([0,12,0]) union() {
cube([10,10,10]);
translate([0,10,10]) cube([2,2,10]);
}

View File

@ -206,7 +206,8 @@ LIST(APPEND CGALPNGTEST_FILES
${CMAKE_SOURCE_DIR}/../testdata/scad/features/square-tests.scad
${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/cylinder-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/union-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: 9.6 KiB