-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo.scad
43 lines (32 loc) · 807 Bytes
/
demo.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* This demo cut a 50x50x10 cube in 2 parts */
use <dovetail.scad>;
/* [Teeth] */
// Teeth count
Teeth_count = 5; // [2:10]
// Teeth height
Teeth_height = 8; // [2:20]
// Teeth clearance
Teeth_clearance = 4; // [1:10]
/* [General] */
// Displayed element choice
Debug_flag = false; // [true:Active, false:Unactive]
// Cube dimension
Cube_dimension = [50, 50, 10];
/**
* [x, y, z]
* - x : Teeth count
* - y : Teeth height
* - z : Teeth Clearance
*/
teeth = [Teeth_count, Teeth_height, Teeth_clearance / 10];
module amazing_design() {
cube(size=Cube_dimension, center=true);
}
intersection() {
amazing_design();
cutter([0, 0, 0], Cube_dimension, teeth, true, Debug_flag);
}
intersection() {
amazing_design();
cutter([0, 0, 0], Cube_dimension, teeth, false, Debug_flag);
}