Added test for implicit union of render() children

brodykenrick-master
Marius Kintel 2013-11-23 22:10:05 -05:00
parent 20eba57829
commit 91c2b8909c
5 changed files with 15 additions and 4 deletions

View File

@ -1,6 +1,11 @@
render() {
difference() {
square(100, center=true);
circle(r=30);
square(10, center=true);
circle(r=3);
}
}
translate([12,0,0]) render() {
square(10, center=true);
circle(r=3);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -1,8 +1,14 @@
group() {
render(convexity = 1) {
difference() {
square(size = [100, 100], center = true);
circle($fn = 0, $fa = 12, $fs = 2, r = 30);
square(size = [10, 10], center = true);
circle($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
multmatrix([[1, 0, 0, 12], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
render(convexity = 1) {
square(size = [10, 10], center = true);
circle($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB