Added color-tests

stl_dim
Marius Kintel 2011-09-02 23:33:18 +02:00
parent 818af2bcfc
commit 287c20d2ff
3 changed files with 12 additions and 1 deletions

10
testdata/scad/features/color-tests.scad vendored Normal file
View File

@ -0,0 +1,10 @@
module object() cube([10,10,10]);
translate([12,12,0]) object();
color([1,0,0]) translate([24,12,0]) object();
translate([0,12,0]) color([0,1,1]) object();
color([0,0,1,0.5]) object();
translate([12,0,0]) color([0,0,1],0.5) object();
translate([24,0,0]) color(c="Green",alpha=0.2) object();
translate([-12,12,0]) color() object();
translate([-12,0,0]) color(alpha=0.5) object();

View File

@ -209,7 +209,8 @@ LIST(APPEND CGALPNGTEST_FILES
${CMAKE_SOURCE_DIR}/../testdata/scad/features/cylinder-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/union-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/difference-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/intersection-tests.scad)
${CMAKE_SOURCE_DIR}/../testdata/scad/features/intersection-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/color-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.3 KiB