forked from jcrocholl/rostock
-
Notifications
You must be signed in to change notification settings - Fork 2
/
platform.scad
46 lines (42 loc) · 1.25 KB
/
platform.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
include <configuration.scad>
use <carriage.scad>
use <polyholes.scad>
$fa=1;
$fs=1.5;
cutout = 12.5;
inset = 6;
module platform() {
translate([0, 0, platform_thickness/2 - (ball_joints ? cup_offset : 0)])
difference() {
union() {
for (a = [0:120:359]) {
rotate([0, 0, a]) {
translate([0, -platform_hinge_offset, 0])
if (ball_joints) {
ball_parallel_joints();
} else {
parallel_joints();
}
// Close little triangle holes.
translate([0, 31, 0]) cylinder(r=5, h=platform_thickness, center=true);
// Holder for adjustable bottom endstops.
if (bottom_endstops) {
translate([0, 45, 0]) cylinder(r=5, h=platform_thickness, center=true);
}
}
}
cylinder(r=30, h=platform_thickness, center=true);
}
cylinder(r=20, h=platform_thickness+12, center=true);
for (a = [0:2]) {
rotate(a*120) {
translate([0, -25, 0])
poly_cylinder(r=2, h=platform_thickness+1, center=true, $fn=12);
// Screw holes for adjustable bottom endstops.
translate([0, 45, 0])
poly_cylinder(r=1.5, h=platform_thickness+1, center=true, $fn=12);
}
}
}
}
platform();