Minor testcase tweak

master
Marius Kintel 2014-12-07 19:38:48 -05:00
parent 82b599e8ba
commit a606fe39b6
2 changed files with 14 additions and 10 deletions

View File

@ -6,5 +6,5 @@ translate([5,0,0]) scale([2,4/3]) obj2D();
translate([10,0,0]) scale(2) obj2D();
// Scale by zero; 2D object
linear_extrude() scale([0,0]) obj2D();
linear_extrude() scale([0,1]) obj2D();
translate([-5,0,0]) linear_extrude() scale([0,0]) obj2D();
translate([-5,0,0]) linear_extrude() scale([0,1]) obj2D();

View File

@ -18,17 +18,21 @@ group() {
}
}
}
linear_extrude(height = 100, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
multmatrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
group() {
square(size = [2, 3], center = true);
multmatrix([[1, 0, 0, -5], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(height = 100, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
multmatrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
group() {
square(size = [2, 3], center = true);
}
}
}
}
linear_extrude(height = 100, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
multmatrix([[0, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
group() {
square(size = [2, 3], center = true);
multmatrix([[1, 0, 0, -5], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(height = 100, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
multmatrix([[0, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
group() {
square(size = [2, 3], center = true);
}
}
}
}