Test: verify winding order of holes with projection(cut=true)

svg-export
Oskar Linde 2014-02-05 14:07:26 +01:00
parent 5e45feafca
commit 013d2722da
5 changed files with 23 additions and 0 deletions

View File

@ -13,3 +13,15 @@ translate([0,-10,0]) projection(cut=true) {
translate([2.1,2.1]) difference() { cube(5,center=true); cube(4,center=true); }
}
}
// Verify hole winding order
translate([-15,0,0])
minkowski() {
projection(cut=true) difference() {
cube(10,center=true);
cube([5,5,20],center=true);
}
square(1);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -30,4 +30,15 @@ group() {
}
}
}
multmatrix([[1, 0, 0, -15], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
minkowski(convexity = 0) {
projection(cut = true, convexity = 0) {
difference() {
cube(size = [10, 10, 10], center = true);
cube(size = [5, 5, 20], center = true);
}
}
square(size = [1, 1], center = false);
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB