-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcompression_flanges.scad
47 lines (40 loc) · 2.01 KB
/
compression_flanges.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
/*
* CAD file for the UConduit compression flanges. Top flanges (qty 4) are 16mm,
* bottom (qty 8) are 12mm, vertex compression flanges (qty 2) are 10mm
*
* Creative Commons Share Alike 3.0
* Copyright (c) 2013 David Lee Miller
*
*/
include <ucon_config.scad>
use <ucon_functions.scad>
use <MCAD/motors.scad>
use <MCAD/nuts_and_bolts.scad>
$fn=100;
/**** Choose type (0=16mm top, 1=16mm bottom, 2= 10mm z-axis) ****/
type = 2;
if (type==0){
////// 16mm compression flanges for the top (4 required) //////
translate([-38/2,38/2,0]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,16,12);
translate([-38/2,-38/2,0]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,16,12);
translate([38/2,38/2,0]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,16,12);
translate([38/2,-38/2,0]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,16,12);
}
else if(type==1){
////// 16mm compression plates for the bottom (8 required) //////
translate([38/2,38*3/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([-38/2,38*3/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([38,38/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([38*3/2*0,38/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([38*3/2,38*3/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([38/2,38*5/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([-38/2,38*5/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
translate([38*3/2,38*5/2,0]) rotate([0,0,0]) quadflatPlate1(0,0,0,35.1,35.1,16,12);
}
else if(type==2){
////// 10mm compression flanges for the vertexes (4 required) //////
translate([-38/2,38/2,-3]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,10,12);
translate([-38/2,-38/2,-3]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,10,12);
translate([38/2,38/2,-3]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,10,12);
translate([38/2,-38/2,-3]) rotate([0,0,0]) quadflatFlange1(0,0,0,35.1,35.1,10,12);
}