mirror of https://github.com/vitalif/openscad
Added union-tests
parent
e2da24871d
commit
8e0651afd4
|
@ -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]);
|
||||||
|
}
|
|
@ -206,7 +206,8 @@ LIST(APPEND CGALPNGTEST_FILES
|
||||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/square-tests.scad
|
${CMAKE_SOURCE_DIR}/../testdata/scad/features/square-tests.scad
|
||||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/cube-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/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)
|
#LIST(APPEND CGALPNGTEST_FILES ${CMAKE_SOURCE_DIR}/../examples/example001.scad)
|
||||||
add_cmdline_test(cgalpngtest png ${CGALPNGTEST_FILES})
|
add_cmdline_test(cgalpngtest png ${CGALPNGTEST_FILES})
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 9.6 KiB |
Loading…
Reference in New Issue