mirror of https://github.com/vitalif/openscad
Added difference-tests
parent
8e0651afd4
commit
a20c08b8ce
|
@ -1,4 +1,25 @@
|
||||||
difference() {
|
difference() {
|
||||||
sphere(3);
|
cube([10,10,10], center=true);
|
||||||
cube([3,3,8], 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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,7 +207,8 @@ LIST(APPEND CGALPNGTEST_FILES
|
||||||
${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)
|
${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)
|
#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: 11 KiB |
Loading…
Reference in New Issue