mirror of https://github.com/vitalif/openscad
Test: verify winding order of holes with projection(cut=true)
parent
5e45feafca
commit
013d2722da
|
@ -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 |
|
@ -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 |
Loading…
Reference in New Issue