Updated import_stl-tests: Added subtraction from not found file

527olive
Marius Kintel 2013-12-28 22:02:45 -05:00
parent b5928655e3
commit b11429b1d2
2 changed files with 13 additions and 0 deletions

View File

@ -4,3 +4,10 @@ translate([4,0,0]) import("import_bin.stl");
// Test binary STLs which happen to start with the string "solid"
translate([0,4,0]) import("import_bin_solid.stl");
translate([0,2,0]) import("@CMAKE_SOURCE_DIR@/../testdata/scad/features/import.stl");
translate([2,2,0]) {
difference() {
import("not-found.stl");
cube([1,1,4], center=true);
}
}

View File

@ -12,4 +12,10 @@ group() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
import(file = "import.stl", layer = "", origin = [0, 0], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 2);
}
multmatrix([[1, 0, 0, 2], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
import(file = "not-found.stl", layer = "", origin = [0, 0], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 2);
cube(size = [1, 1, 4], center = true);
}
}
}