-
Notifications
You must be signed in to change notification settings - Fork 0
/
xbottom.jscad
39 lines (31 loc) · 1.03 KB
/
xbottom.jscad
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
// title : X1
// author : Gino Tubaro
// license : MIT License
// description: Conector inferior x1 (bottom)
// file : xbottom.jscad
function x1(x,y,z) {
xbottom=
difference(
union(
CSG.roundedCube({ // rounded cube
center: [0, 0, 0],
radius: [y, x, z],
roundradius: 2,
resolution: 8,
}),
CSG.roundedCylinder({ // and its rounded version
start: [-y, -x, 0],
end: [-y, x, 0],
radius: z,
resolution: 16
}),
CSG.roundedCylinder({ // and its rounded version
start: [y, -x-8, 0],
end: [y, x+8, 0],
radius: z,
resolution: 16
})
)
);
return xbottom.translate([0, 0, z]);
}