fix spoolholder design to render properly

This commit is contained in:
2018-04-09 22:09:15 -07:00
parent a2a3af915d
commit 0dac27715b

View File

@@ -2,15 +2,17 @@ od=75;
id=9.5; id=9.5;
len=80; len=80;
// cut in half...uncomment middle block for full length
module truss() module truss()
{ {
polygon([[od/2-3,0], polygon([[od/2-3,0],
[id/2,len/4], [id/2,len/4],
[od/2-3,len/2], [od/2-3,len/2],
[id/2,3*len/4], // [id/2,3*len/4],
[od/2-3,len], // [od/2-3,len],
[od/2,len], // [od/2,len],
[id/2+3,3*len/4], // [id/2+3,3*len/4],
[od/2,len/2], [od/2,len/2],
[id/2+3,len/4], [id/2+3,len/4],
[od/2,0] [od/2,0]
@@ -19,18 +21,18 @@ module truss()
module end_spoke() module end_spoke()
{ {
linear_extrude(3) linear_extrude(3, convexity=10)
polygon([[-1.5,id/2], polygon([[-1.5,id/2],
[1.5,id/2], [1.5,id/2],
[1.5,od/2], [1.5,od/2],
[-1.5,od/2]]); [-1.5,od/2]]);
} }
difference() //difference()
{ //{
union() // main body union() // main body
{ {
linear_extrude(len) linear_extrude(len/2, convexity=10)
{ {
difference() difference()
{ {
@@ -48,33 +50,33 @@ difference()
// diagonal spokes // diagonal spokes
translate([0,1.5,0]) translate([0,1.5,0])
rotate([90,0,0]) rotate([90,0,0])
linear_extrude(3) linear_extrude(3, convexity=10)
truss(); truss();
translate([-1.5,0,0]) translate([-1.5,0,0])
rotate([90,0,90]) rotate([90,0,90])
linear_extrude(3) linear_extrude(3, convexity=10)
truss(); truss();
translate([0,-1.5,0]) translate([0,-1.5,0])
rotate([90,0,180]) rotate([90,0,180])
linear_extrude(3) linear_extrude(3, convexity=10)
truss(); truss();
translate([1.5,0,0]) translate([1.5,0,0])
rotate([90,0,-90]) rotate([90,0,-90])
linear_extrude(3) linear_extrude(3, convexity=10)
truss(); truss();
} }
// quick hack: cut in half so we can add flange // // quick hack: cut in half so we can add flange
translate([0,0,len/2]) // translate([0,0,len/2])
linear_extrude(len/2+1) // linear_extrude(len/2+1)
circle(d=od+1, $fn=90); // circle(d=od+1, $fn=90);
} //}
// flange // flange
linear_extrude(2) linear_extrude(2, convexity=10)
difference() difference()
{ {
circle(d=od+20, $fn=90); circle(d=od+20, $fn=90);