MAGICAL ! Thanks for this !
I was working on the tedious task of filleting by differencing cylinders
from cubes when you wrote.
At present I am far from understanding the mechanics of your module but will
chew on it soon. To quicken generation, I change union() to weld() at the
end of designing stage. Wonderful.
<</... so the bottom of the holes for the led and ldr aren't coplanar with
the top of the base plate/ >>
- Absolutely. Impemented ! Here is the revised version of my housing, all
recommendations taken into account except the block's wall thickness (has to
fit onto my perf board) :
use <fillet-demo.scad> // by osj1961-openscad forum member
//Couple LED/LDR housing (detects gray intensity)
$fn=50;
difference() {
//union() {
weld(2) {
cube([8,15,11.5],center=true); // body lodging
// fastening plate
translate([0,0,-6.25]) {
hull() {
translate([-6,-9.5, 0]) // bottom left
cylinder(h=2,r=4);
translate([-6, 9.5, 0]) // top left
cylinder(h=2,r=4);
translate([ 6, 9.5, 0]) // top right
cylinder(h=2,r=4);
translate([ 6,-9.5, 0]) // bottom right
cylinder(h=2,r=4);
} // hull
} // translate
} // union
translate([0,3.5,2])
cylinder(10.5,r=3,center=true); // LED lodging
translate([0,-3.5,2])
cylinder(10.5,r=3,center=true); // LDR lodging
union() {
// components leads holes
translate([0,-5,-5])
cylinder(5,r=0.5,center=true); // LED left
translate([0,-2,-5])
cylinder(5,r=0.5,center=true); // LED right
translate([0,2.5,-5])
cylinder(5,r=0.5,center=true); // LDR left
translate([0,4.5,-5])
cylinder(5,r=0.5,center=true); // LDR left
// fastening holes
translate([7,0,-5])
cylinder(3,r=1.6,center=true); // long side right
translate([-7,0,-5])
cylinder(3,r=1.6,center=true); // long side left
translate([0,10.5,-5])
cylinder(3,r=1.6,center=true); // short side top
translate([0,-10.5,-5])
cylinder(3,r=1.6,center=true); // short side bottom
} // union
// clear fillet around fastening holes
// top
translate([0,10,-4.2]) cylinder(h=5,r=2.5);
// bottom
translate([0,-10,-4.2]) cylinder(h=5,r=2.5);
// right
translate([6.5,0,-4.2]) cylinder(h=5,r=2.5);
// left
translate([-6.5,0,-4.2]) cylinder(h=5,r=2.5);
} // difference()
I think I am good to go but comments are welcome. Thanks again to all.
Dan
--
View this message in context: http://forum.openscad.org/My-first-print-my-first-desappointment-tp16449p16488.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
MAGICAL ! Thanks for this !
I was working on the tedious task of filleting by differencing cylinders
from cubes when you wrote.
At present I am far from understanding the mechanics of your module but will
chew on it soon. To quicken generation, I change union() to weld() at the
end of designing stage. Wonderful.
<</... so the bottom of the holes for the led and ldr aren't coplanar with
the top of the base plate/ >>
- Absolutely. Impemented ! Here is the revised version of my housing, all
recommendations taken into account except the block's wall thickness (has to
fit onto my perf board) :
* * * * * * * * *
use <fillet-demo.scad> // by osj1961-openscad forum member
//Couple LED/LDR housing (detects gray intensity)
$fn=50;
difference() {
//union() {
weld(2) {
cube([8,15,11.5],center=true); // body lodging
// fastening plate
translate([0,0,-6.25]) {
hull() {
translate([-6,-9.5, 0]) // bottom left
cylinder(h=2,r=4);
translate([-6, 9.5, 0]) // top left
cylinder(h=2,r=4);
translate([ 6, 9.5, 0]) // top right
cylinder(h=2,r=4);
translate([ 6,-9.5, 0]) // bottom right
cylinder(h=2,r=4);
} // hull
} // translate
} // union
translate([0,3.5,2])
cylinder(10.5,r=3,center=true); // LED lodging
translate([0,-3.5,2])
cylinder(10.5,r=3,center=true); // LDR lodging
union() {
// components leads holes
translate([0,-5,-5])
cylinder(5,r=0.5,center=true); // LED left
translate([0,-2,-5])
cylinder(5,r=0.5,center=true); // LED right
translate([0,2.5,-5])
cylinder(5,r=0.5,center=true); // LDR left
translate([0,4.5,-5])
cylinder(5,r=0.5,center=true); // LDR left
// fastening holes
translate([7,0,-5])
cylinder(3,r=1.6,center=true); // long side right
translate([-7,0,-5])
cylinder(3,r=1.6,center=true); // long side left
translate([0,10.5,-5])
cylinder(3,r=1.6,center=true); // short side top
translate([0,-10.5,-5])
cylinder(3,r=1.6,center=true); // short side bottom
} // union
// clear fillet around fastening holes
// top
translate([0,10,-4.2]) cylinder(h=5,r=2.5);
// bottom
translate([0,-10,-4.2]) cylinder(h=5,r=2.5);
// right
translate([6.5,0,-4.2]) cylinder(h=5,r=2.5);
// left
translate([-6.5,0,-4.2]) cylinder(h=5,r=2.5);
} // difference()
* * * * * * * * * * *
I think I am good to go but comments are welcome. Thanks again to all.
Dan
--
View this message in context: http://forum.openscad.org/My-first-print-my-first-desappointment-tp16449p16488.html
Sent from the OpenSCAD mailing list archive at Nabble.com.