File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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/>.
You can’t perform that action at this time.
0 commit comments