Updated examples

master
Marius Kintel 2015-03-03 02:47:53 -05:00
parent 928a3f5da7
commit 5c7ebc0fda
15 changed files with 24 additions and 9 deletions

View File

@ -1553,27 +1553,27 @@ add_cmdline_test(openscad-cameyeortho-viewall EXE ${OPENSCAD_BINPATH}
add_cmdline_test(openscad-colorscheme-cornfield EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Cornfield -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/difference_cube.scad)
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/logo.scad)
add_cmdline_test(openscad-colorscheme-metallic EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Metallic -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/difference_cube.scad)
add_cmdline_test(openscad-colorscheme-metallic-render EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Metallic --render -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/difference_cube.scad)
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/logo.scad)
add_cmdline_test(openscad-colorscheme-sunset EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Sunset -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/difference_cube.scad)
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/logo.scad)
add_cmdline_test(openscad-colorscheme-starnight EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Starnight -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/difference_cube.scad)
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/logo.scad)
add_cmdline_test(openscad-colorscheme-monotone EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Monotone -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/difference_cube.scad)
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/logo.scad)
add_cmdline_test(openscad-colorscheme-metallic-render EXE ${OPENSCAD_BINPATH}
ARGS --colorscheme=Metallic --render -o
SUFFIX png
FILES ${CMAKE_SOURCE_DIR}/../examples/Basics/CSG.scad)
#message("Available test configurations: ${TEST_CONFIGS}")
#foreach(CONF ${TEST_CONFIGS})

View File

@ -0,0 +1,15 @@
group() {
group() {
difference() {
sphere($fn = 100, $fa = 12, $fs = 2, r = 25);
cylinder($fn = 100, $fa = 12, $fs = 2, h = 62.5, r1 = 12.5, r2 = 12.5, center = true);
# multmatrix([[1, 0, 0, 0], [0, 0, -1, 0], [0, 1, 0, 0], [0, 0, 0, 1]]) {
cylinder($fn = 100, $fa = 12, $fs = 2, h = 62.5, r1 = 12.5, r2 = 12.5, center = true);
}
multmatrix([[0, 0, 1, 0], [0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, 1]]) {
cylinder($fn = 100, $fa = 12, $fs = 2, h = 62.5, r1 = 12.5, r2 = 12.5, center = true);
}
}
}
group();
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB