Skip to content

Commit 133dec5

Browse files
committed
Add CSG failing test
1 parent 71af533 commit 133dec5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tests/csg/test.scad

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
// CSG.scad - Basic example of CSG usage
3+
4+
translate([-24,0,0]) {
5+
union() {
6+
cube(15, center=true);
7+
sphere(10);
8+
}
9+
}
10+
11+
intersection() {
12+
cube(15, center=true);
13+
sphere(10);
14+
}
15+
16+
translate([24,0,0]) {
17+
difference() {
18+
cube(15, center=true);
19+
sphere(10);
20+
}
21+
}
22+
23+
echo(version=version());
24+
// Written by Marius Kintel <marius@kintel.net>
25+
//
26+
// To the extent possible under law, the author(s) have dedicated all
27+
// copyright and related and neighboring rights to this software to the
28+
// public domain worldwide. This software is distributed without any
29+
// warranty.
30+
//
31+
// You should have received a copy of the CC0 Public Domain
32+
// Dedication along with this software.
33+
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

0 commit comments

Comments
 (0)