forked from prusa3d/Original-Prusa-i3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bad polygon causing slicer issues fixed
- Loading branch information
michalprusa
committed
May 10, 2016
1 parent
cd225c4
commit 1573930
Showing
2 changed files
with
147 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,147 +1,147 @@ | ||
// PRUSA iteration3 | ||
// PSU Cover | ||
// GNU GPL v3 | ||
// Josef Průša <[email protected]> and contributors | ||
// http://www.reprap.org/wiki/Prusa_Mendel | ||
// http://prusamendel.org | ||
|
||
module PSU_COVER() | ||
{ | ||
difference(){ | ||
union(){ | ||
|
||
translate([0,0,-1])cube([95,50+15,56]); // Base | ||
|
||
translate([0,0,-3.5])cube([14-0.5,50+15,5]); // Back pillar 1 | ||
|
||
translate([60-0.5,0,-3.5])cube([14,50+15,5]); // Back pillar 2 | ||
|
||
translate([91+4,0,-1])cube([6,50+15,56]); // Base for bracket | ||
|
||
translate([-2,45.4-4.6,19])cube([2,3,15]); // nipple on the right | ||
|
||
|
||
translate([0,35,46.5])scale([1.2,1,0.2])rotate([-28,-50,-58])cube([45,45,30]); | ||
|
||
|
||
//translate([94,20,13])scale([0.2,1.2,1])rotate([-29,-51,-48])cube([30,35,30]); | ||
//translate([10,25,45])scale([1,1,0.3])rotate([-40,-50,-58])cube([40,30,30]); | ||
|
||
translate([-1.6,0,0])cube([1.65,65,2]); // Frame skirt 1 | ||
translate([-1.6,0,0])cube([1.65,30,55]); // Frame skirt 2 | ||
translate([-1.6,0,51])cube([1.65,65,4]); // Frame skirt 3 | ||
|
||
} | ||
|
||
|
||
//pretty corners | ||
translate([-11,-2,-2])rotate([0,0,-45])cube([10,10,58]); | ||
translate([95-3+5+1,-2,-2])rotate([0,0,-45])cube([10,10,58]); | ||
|
||
translate([-3,-9,-5])rotate([-45,0,0])cube([130,10,10]); | ||
translate([-3,-12,56])rotate([-45,0,0])cube([130,10,10]); | ||
|
||
translate([-3,45+15,-5])rotate([-45,0,0])cube([130,10,10]); | ||
translate([-3,48+15,56])rotate([-45,0,0])cube([130,10,10]); | ||
|
||
translate([95-3+3,70,-2])rotate([0,0,-45])cube([10,10,58]); | ||
|
||
|
||
translate([95,0-10,-20])rotate([0,-45,-45])cube([20,20,20]); | ||
translate([95,0-10,45])rotate([0,-45,-45])cube([20,20,20]); | ||
|
||
|
||
translate([95,60,-10])rotate([-35,-45,-45])cube([20,20,20]); | ||
translate([95,60,65])rotate([-55,48,-48])cube([20,20,20]); | ||
|
||
translate([79,-5,68.5])rotate([0,45,0])cube([20,90,20]); | ||
|
||
translate([79,-5,-14.5])rotate([0,45,0])cube([20,90,20]); | ||
|
||
|
||
translate([-14,-5,68.5])rotate([0,45,0])cube([20,90,20]); | ||
|
||
translate([3,2,2])cube([89.02,50.02+15,50.02-0.7]); // main cutout | ||
|
||
translate([-3,50-16.4+15,2])cube([100,16.5,50-0.7]); // insert cutout | ||
|
||
translate([-3,50-16.4-15.6+15,2])cube([10,100,17]); // right bottom cutout | ||
|
||
translate([85+2,50-16.4-17.6+15+0.9,2])cube([10,100,50-0.7]); // left bottom cutout | ||
|
||
translate([-3,50-16.4-17.6+15+0.9,2])cube([100,100,10]); // bottom cutout | ||
|
||
translate([5.5,0,0]){ | ||
translate([45,2,40])cube([27.5,31.9,30]); // socket cutout | ||
translate([45-4.5,2+15.6,40])cylinder(r=2,h=50, $fn=8); // socket right hole cutout | ||
translate([45-4.5+37-0.5,2+15.6,40])cylinder(r=2,h=50, $fn=8); // socket left hole cutout | ||
|
||
translate([1,2,44])cube([20,14,30]); // switch cutout | ||
|
||
translate([45-4.5+37-0.5,2+15.6,40])cylinder(r=3.25,h=15-1.5, $fn=6); // socket left hole cutout nuttrap | ||
translate([45-4.5,2+15.6,40])cylinder(r=3.25,h=15-1.5, $fn=6); // socket left hole cutout nuttrap | ||
} | ||
translate([20,50,54.5])linear_extrude(height = 1) { | ||
text("Prusa3D", center=true); | ||
} | ||
|
||
/* | ||
translate([8,40-1+15,40])cylinder(r=2,h=50,$fn=15); // left front mounthole cutout | ||
translate([8,40-1+15,53.6])cylinder(r1=2, r2=3.5,h=1.5,$fn=15); | ||
translate([87,40-1+15,40])cylinder(r=2,h=50,$fn=15); // right front mounthole cutout | ||
translate([87,40-1+15,53.6])cylinder(r1=2, r2=3.5,h=1.5,$fn=15); | ||
*/ | ||
|
||
translate([7-0.5-0.5,40-1+15+0.7,-10])cylinder(r=2,h=50,$fn=15); // left back mounthole cutout | ||
translate([7-0.5-0.5,40-1+15+0.7,-3.7])cylinder(r2=2, r1=3.5,h=1.5,$fn=15); | ||
|
||
translate([67.5-0.7-0.5,43.5-1+15+0.5,-10])cylinder(r=2,h=50,$fn=15); // right back mounthole cutout | ||
translate([67.5-0.7-0.5,43.5-1+15+0.5,-3.7])cylinder(r2=2, r1=3.5,h=1.5,$fn=15); | ||
|
||
|
||
translate([130,32+26,55-4-25])rotate([0,-90,0])cylinder(r=2.5,h=50,$fn=35); // Left side bracket screw hole | ||
translate([101.1,32+26,55-4-25])rotate([0,-90,0])cylinder(r2=2.5, r1=4.1,h=3,$fn=15); | ||
|
||
for(i=[0:10]){ | ||
translate([20+i,6,-10])cylinder(r=3,h=50); // left back mounthole cutout | ||
} | ||
|
||
|
||
|
||
} | ||
} | ||
|
||
module PSU_Y_REINFORCEMENT() | ||
{ | ||
difference() | ||
{ | ||
union() // base shape | ||
{ | ||
translate([ 59.5, 0, -18 ]) cube([ 33, 6, 19 ]); // reinforcement plate | ||
translate([ 73.5, 6, -18 ]) cube([ 5, 15, 19 ]); // vertical_reinforcement | ||
} | ||
union () // cutouts | ||
{ | ||
|
||
translate([ 88, 8, -10.5 ]) rotate([ 90, 0, 0]) cylinder( h = 10, r = 1.6, $fn=30 ); //hole A | ||
translate([ 68, 8, -10.5 ]) rotate([ 90, 0, 0 ]) cylinder( h = 10, r = 1.6, $fn=30 ); //hole B | ||
|
||
translate([ 87.5, -8, -20 ]) rotate([ 0, 45, 0 ]) cube([ 10, 20, 10 ]); //corner cut | ||
translate([ 52.5, -8, -20 ]) rotate([ 0, 45, 0 ]) cube([ 10, 20, 10 ]); //corner cut | ||
translate([ 68.5, 20, -34 ]) rotate([ 45, 0, 0 ]) cube([ 15, 23, 20 ]); //vertical reinf cutout | ||
} | ||
} | ||
} | ||
|
||
module FINAL_PART(){ | ||
union() | ||
{ | ||
PSU_COVER(); | ||
PSU_Y_REINFORCEMENT(); | ||
} | ||
} | ||
|
||
FINAL_PART(); | ||
|
||
|
||
// PRUSA iteration3 | ||
// PSU Cover | ||
// GNU GPL v3 | ||
// Josef Průša <[email protected]> and contributors | ||
// http://www.reprap.org/wiki/Prusa_Mendel | ||
// http://prusamendel.org | ||
|
||
module PSU_COVER() | ||
{ | ||
difference(){ | ||
union(){ | ||
|
||
translate([0,0,-1])cube([95,50+15,56]); // Base | ||
|
||
translate([0,0,-3.5])cube([14-0.5,50+15,5]); // Back pillar 1 | ||
|
||
translate([60-0.5,0,-3.5])cube([14,50+15,5]); // Back pillar 2 | ||
|
||
translate([91+4,0,-1])cube([6,50+15,56]); // Base for bracket | ||
|
||
translate([-2,45.4-4.6,19])cube([2,3,15]); // nipple on the right | ||
|
||
|
||
translate([0,35,46.5])scale([1.2,1,0.2])rotate([-28,-50,-58])cube([45,45,30]); | ||
|
||
|
||
//translate([94,20,13])scale([0.2,1.2,1])rotate([-29,-51,-48])cube([30,35,30]); | ||
//translate([10,25,45])scale([1,1,0.3])rotate([-40,-50,-58])cube([40,30,30]); | ||
|
||
translate([-1.6,0,0])cube([1.65,65,2]); // Frame skirt 1 | ||
translate([-1.6,0,0])cube([1.65,30,55]); // Frame skirt 2 | ||
translate([-1.6,0,51])cube([1.65,65,4]); // Frame skirt 3 | ||
|
||
} | ||
|
||
|
||
//pretty corners | ||
translate([-11,-2,-2])rotate([0,0,-45])cube([10,10,58]); | ||
translate([95-3+5+1,-2,-2])rotate([0,0,-45])cube([10,10,58]); | ||
|
||
translate([-3,-9,-5])rotate([-45,0,0])cube([130,10,10]); | ||
translate([-3,-12,56])rotate([-45,0,0])cube([130,10,10]); | ||
|
||
translate([-3,45+15,-5])rotate([-45,0,0])cube([130,10,10]); | ||
translate([-3,48+15,56])rotate([-45,0,0])cube([130,10,10]); | ||
|
||
translate([95-3+3,70,-2])rotate([0,0,-45])cube([10,10,58]); | ||
|
||
|
||
translate([95,0-10,-20])rotate([0,-45,-45])cube([20,20,20]); | ||
translate([95,0-10,45])rotate([0,-45,-45])cube([20,20,20]); | ||
|
||
|
||
translate([95,60,-10])rotate([-35,-45,-45])cube([20,20,20]); | ||
translate([95,60,65])rotate([-55,48,-48])cube([20,20,20]); | ||
|
||
translate([79,-5,68.5])rotate([0,45,0])cube([20,90,20]); | ||
|
||
translate([79,-5,-14.5])rotate([0,45,0])cube([20,90,20]); | ||
|
||
|
||
translate([-14,-5,68.5])rotate([0,45,0])cube([20,90,20]); | ||
|
||
translate([3,2,2])cube([89.02,50.02+15,50.02-0.7]); // main cutout | ||
|
||
translate([-3,50-16.4+15,2])cube([100,16.5,50-0.7]); // insert cutout | ||
|
||
translate([-3,50-16.4-15.6+15,2])cube([10,100,17]); // right bottom cutout | ||
|
||
translate([85+2,50-16.4-17.6+15+0.9,2])cube([10,100,50-0.7]); // left bottom cutout | ||
|
||
translate([-3,50-16.4-17.6+15+0.9,2])cube([100,100,10]); // bottom cutout | ||
|
||
translate([5.5,0,0]){ | ||
translate([45,2,40])cube([27.5,31.9,30]); // socket cutout | ||
translate([45-4.5,2+15.6,40])cylinder(r=2,h=50, $fn=8); // socket right hole cutout | ||
translate([45-4.5+37-0.5,2+15.6,40])cylinder(r=2,h=50, $fn=8); // socket left hole cutout | ||
|
||
translate([1,2,44])cube([20,14,30]); // switch cutout | ||
|
||
translate([45-4.5+37-0.5,2+15.6,40])cylinder(r=3.25,h=15-1.5, $fn=6); // socket left hole cutout nuttrap | ||
translate([45-4.5,2+15.6,40])cylinder(r=3.25,h=15-1.5, $fn=6); // socket left hole cutout nuttrap | ||
} | ||
translate([20,50,54.5])linear_extrude(height = 1) { | ||
text("Prusa3D", center=true); | ||
} | ||
|
||
/* | ||
translate([8,40-1+15,40])cylinder(r=2,h=50,$fn=15); // left front mounthole cutout | ||
translate([8,40-1+15,53.6])cylinder(r1=2, r2=3.5,h=1.5,$fn=15); | ||
translate([87,40-1+15,40])cylinder(r=2,h=50,$fn=15); // right front mounthole cutout | ||
translate([87,40-1+15,53.6])cylinder(r1=2, r2=3.5,h=1.5,$fn=15); | ||
*/ | ||
|
||
translate([7-0.5-0.5,40-1+15+0.7,-10])cylinder(r=2,h=50,$fn=15); // left back mounthole cutout | ||
translate([7-0.5-0.5,40-1+15+0.7,-3.7])cylinder(r2=2, r1=3.5,h=1.5,$fn=15); | ||
|
||
translate([67.5-0.7-0.5,43.5-1+15+0.5,-10])cylinder(r=2,h=50,$fn=15); // right back mounthole cutout | ||
translate([67.5-0.7-0.5,43.5-1+15+0.5,-3.7])cylinder(r2=2, r1=3.5,h=1.5,$fn=15); | ||
|
||
|
||
translate([130,32+26,55-4-25])rotate([0,-90,0])cylinder(r=2.5,h=50,$fn=35); // Left side bracket screw hole | ||
translate([101.1,32+26,55-4-25])rotate([0,-90,0])cylinder(r2=2.5, r1=4.1,h=3,$fn=15); | ||
|
||
for(i=[0:10]){ | ||
translate([20+i,6,-10])cylinder(r=3,h=50); // left back mounthole cutout | ||
} | ||
|
||
|
||
|
||
} | ||
} | ||
|
||
module PSU_Y_REINFORCEMENT() | ||
{ | ||
difference() | ||
{ | ||
union() // base shape | ||
{ | ||
translate([ 59.5, 0, -18 ]) cube([ 33, 6, 19 ]); // reinforcement plate | ||
translate([ 73.5, 5, -18 ]) cube([ 5, 16, 19 ]); // vertical_reinforcement | ||
} | ||
union () // cutouts | ||
{ | ||
|
||
translate([ 88, 8, -10.5 ]) rotate([ 90, 0, 0]) cylinder( h = 10, r = 1.6, $fn=30 ); //hole A | ||
translate([ 68, 8, -10.5 ]) rotate([ 90, 0, 0 ]) cylinder( h = 10, r = 1.6, $fn=30 ); //hole B | ||
|
||
translate([ 87.5, -8, -20 ]) rotate([ 0, 45, 0 ]) cube([ 10, 20, 10 ]); //corner cut | ||
translate([ 52.5, -8, -20 ]) rotate([ 0, 45, 0 ]) cube([ 10, 20, 10 ]); //corner cut | ||
translate([ 68.5, 20, -34 ]) rotate([ 45, 0, 0 ]) cube([ 15, 23, 20 ]); //vertical reinf cutout | ||
} | ||
} | ||
} | ||
|
||
module FINAL_PART(){ | ||
union() | ||
{ | ||
PSU_COVER(); | ||
PSU_Y_REINFORCEMENT(); | ||
} | ||
} | ||
|
||
FINAL_PART(); | ||
|
||
|
Binary file not shown.