Use stl, dxf file to mod part August 17, 2015 01:14PM |
Registered: 9 years ago Posts: 19 |
$fa = 0.5; $fs = 1.5; b_width = 124.7; b_depth = 28.5; b_height = 24; b_circle = 30.5; b_circle_length = 17; slot_width = 10.5; slot_height = b_height +1.2; slot_angle = 0; base(); module base() { difference() { cube([b_width, b_depth, b_height]); //circle cuts //left translate([b_width/2+40,b_height-10,slot_height+5]) circlecutout2(1.2); //center translate([b_width/2,b_height+7,slot_height]) circlecutout(); //right translate([b_width/2-40,b_height-10,slot_height+5]) circlecutout2(1.2); //slot cut translate([-3,b_height-13,6]) slotcutout(); //Front cut translate([-1.5,b_depth/2,b_height/1.2]) fCut(); } } module circlecutout() { rotate([90,0,00]) cylinder(h=b_circle_length, d=b_circle); } module circlecutout2(scx) { rotate([-70,0,0]) cylinder(h=b_circle_length, d=b_circle*scx); } module fCut() { cube([b_width+3, b_depth/1.5, b_height/2]); } module slotcutout() { rotate([15,0,0]) minkowski() { cube([b_width + 8, slot_width-1, slot_height+5]); rotate([0,90,0]) cylinder(r=2,h=slot_height+5); } }
Re: Use stl, dxf file to mod part August 17, 2015 03:39PM |
Registered: 10 years ago Posts: 590 |
module slotcutout(opening=10) { rotate([15,0,0]){ hull() { translate([0,-opening/2-2,slot_height+5])cube([b_width+8,slot_width+3+opening,1]); rotate([0,90,0]) cylinder(r=2,h=b_width+8); translate([0,slot_width-1,0])rotate([0,90,0]) cylinder(r=2,h=b_width+8); } } }
Re: Use stl, dxf file to mod part August 17, 2015 10:07PM |
Registered: 9 years ago Posts: 19 |
Re: Use stl, dxf file to mod part August 17, 2015 11:03PM |
Registered: 9 years ago Posts: 19 |
Re: Use stl, dxf file to mod part August 18, 2015 12:19AM |
Registered: 10 years ago Posts: 590 |
Re: Use stl, dxf file to mod part August 18, 2015 10:20PM |
Registered: 9 years ago Posts: 19 |
Re: Use stl, dxf file to mod part August 19, 2015 01:07AM |
Registered: 10 years ago Posts: 590 |
Quote
rrowan327
P.S. how do I go from either openscad or STL file to png/jpeg? I couldn't figure out how to display the file in this forum. I have an imgur account but they what a raster file.
Re: Use stl, dxf file to mod part August 19, 2015 05:11AM |
Registered: 15 years ago Posts: 3,742 |
Re: Use stl, dxf file to mod part August 19, 2015 10:30AM |
Registered: 9 years ago Posts: 19 |
Quote
rhmorrison
To post the image:
1. Click on "Attach a file ..."
2. Click on "Browse..." button
3. Select the image file and click on "Open"
4. Click the "Attach" button
5. Click on "Create link in message"
[attachment 60257 DoubleFacepalm.jpg]
Re: Use stl, dxf file to mod part August 19, 2015 10:47AM |
Registered: 15 years ago Posts: 3,742 |
Quote
enif
In OpenScad I use "File / Export / Export as image" to generate a PNG from a Scad-File
Re: Use stl, dxf file to mod part August 19, 2015 12:01PM |
Registered: 9 years ago Posts: 19 |