-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht.scad
52 lines (42 loc) · 743 Bytes
/
t.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
44
45
46
47
48
49
50
51
52
module t(x=0,y=0,z=0){
translate([x,y,z])children();
}
module tx(a){
translate([a,0,0])children();
}
module ty(a){
translate([0,a,0])children();
}
module tz(a){
translate([0,0,a])children();
}
module r(x=0,y=0,z=0){
rotate([x,y,z])children();
}
module rx(a){
rotate([a,0,0])children();
}
module ry(a){
rotate([0,a,0])children();
}
module rz(a){
rotate([0,0,a])children();
}
module mx(){
mirror([1,0,0])children();
}
module my(){
mirror([0,1,0])children();
}
module mz(){
mirror([0,0,1])children();
}
module cub(x=1,y=1,z=1,c=true,h=true){
tz(h?(z/2):0)cube([x,y,z],c);
}
module ring(r1,t,h){
difference(){
cylinder(r=r1,h=h);
tz(-.1)cylinder(r=r1-t,h=h+1);
}
}