Verified Commit 973b06ad authored by Xesxen's avatar Xesxen
Browse files

Repo init

parents
module prism(l, w, h) {
polyhedron(
points= [
[0, 0, 0],
[l, 0, 0],
[l, w, 0],
[0, w, 0],
[0, w, h],
[l, w, h],
],
faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]]
);
}
leg_width=10;
width=30;
standwidth=15;
standlength=100;
union() {
// Sticks
difference() {
translate([0, 0, standwidth])
union() {
linear_extrude(height=60, slices=4)
polygon(points=[
[0,0],
[leg_width,0],
[leg_width,2.5],
[leg_width*.3,5],
[0, 5],
]);
translate([width+20, 0, 0])
mirror(v=[1,0.0])
linear_extrude(height=60, slices=4)
polygon(points=[
[0,0],
[leg_width,0],
[leg_width,2.5],
[leg_width*.3,5],
[0, 5],
]);
translate([0,0,-standwidth])
linear_extrude(height=standwidth)
polygon(points=[
[0, -10],
[0, 5],
[3, 5],
[leg_width, 2.5],
[width+leg_width, 2.5],
[width+leg_width+leg_width*.7, 5],
[width+leg_width*2, 5],
[width+leg_width*2, -10],
]);
translate([5, -5])
rotate([0, 0, 180])
translate([-5, 5])
prism(10, -10, 60);
translate([width+10, 0, 0])
translate([5, -5])
rotate([0, 0, 180])
translate([-5, 5])
prism(10, -10, 60);
};
//translate([0, leg_width/2, 0])
//rotate([90, 0, -90])
translate([leg_width+width/2-standwidth/2, -20, 0])
rotate([0, 0, 90])
prism(30, leg_width+width/2-standwidth/2, 10);
translate([leg_width+width-standwidth/2, 10, 0])
rotate([0, 0, 270])
prism(30, leg_width+width/2-standwidth/2, 10);
}
translate([leg_width+width/2-standwidth/2, 0, 0])
difference() {
linear_extrude(height=standwidth)
polygon(points=[
[0, 2.5],
[0, -standlength],
[standwidth, -standlength],
[standwidth, 2.5],
]);
translate([standwidth/2, -standlength/4, 0])
cylinder(h=standwidth, r=2.6, $fn=100);
translate([standwidth/2, -standlength/4, standwidth-5])
cylinder(h=5, r=5.1, $fn=100);
translate([standwidth/2, -standlength/2, 0])
cylinder(h=standwidth, r=2.6, $fn=100);
translate([standwidth/2, -standlength/2, standwidth-5])
cylinder(h=5, r=5.1, $fn=100);
}
// Standoff
union() {
linear_extrude(height=standwidth+40)
polygon(points=[
[leg_width+width/2-standwidth/2, -standlength+20],
[leg_width+width/2-standwidth/2, -standlength],
[leg_width+width/2+standwidth/2, -standlength],
[leg_width+width/2+standwidth/2, -standlength+20],
]);
translate([0, 0, standwidth+40])
polygon(points=[
[width+leg_width*2, -standlength+20],
[width+leg_width*2, -standlength],
[0, -standlength],
[0, -standlength+20],
]);
translate([0, -standlength, standwidth+40])
rotate([0, 180, -90])
prism(20, leg_width+width/2-standwidth/2, 15);
translate([width+leg_width*2, -standlength+20, standwidth+40])
rotate([0, 180, 90])
prism(20, leg_width+width/2-standwidth/2, 15);
}
};
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment