discuss@lists.openscad.org

OpenSCAD general discussion

View all threads

Stuck again

GH
Gene Heskett
Sat, Apr 3, 2021 6:11 PM

Greetings all;

First I have switched back to my ender-3 printer, with mods, and its
working quite well once I figured out the math to correct some off
scaling it had.

Now I have composed the output shafts cup that will have one of the
spline gears glued into it, and the resized bearing I was working on,
installed on the outside of this somewhat looeely defined cup as the rim
is only 9.5mm high, just enough to accept the thickness of one of the
spline gears.

But before I make the final version, I'd like to make this cup the first
of two items for a differential() { operation, where the subtracted
would be the holes for 6 or 8 flathead screws on a 30mm radius circle,
spaced at 60 or 45 dregres.

That I assume will take a cylinder for the screw hole, and a dual
diameter cyclinder at the top to remove both the bolt hole and remove
the contersink for the underside of the flathead screws.

And I think I got it, but that for loop still takes a noticable amount of
time.
See what you folks think.
// more of my feeble attempt at making a harmonic drive
// this will be the output coupling cup, a shallow
// thing that one of the toothed rings will be pressed
// and glued into. And the new bearing will be sized to
// this parts OD
innrd=120.2; // OD of spline part
outrd= 129.7; // innr of bearing ID, is from bearings
//square size
walthk=5.000; // will also be radius increment
walhgt=9.5; // height of cup depth
walhlf=walhgt*.5; // might be usefull in translate's
innrr=.5innrd; // ditto
outrr=.5
outrd;
trans=.5outrr;
cupradtmp=innrr+outrr;
cupdia=.5
cupradtmp;// another translator
6holes=60;
8holes=45;
module disc()
{
difference()
{
rotate_extrude($fn=360)
union()
{
translate([trans,2.5,0]) square([outrr,walthk],true);
translate([cupdia,walhgt])square([5.0,walhgt],true);
};
// Insert bolthole code here, becomes 2nd argument to difference
for(hole=[0:8holes:360])
{
rotate(hole)
union()
{
translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true);
translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true);
};
};
};
};
disc();

Thanks for any helpfull hints.

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.

Greetings all; First I have switched back to my ender-3 printer, with mods, and its working quite well once I figured out the math to correct some off scaling it had. Now I have composed the output shafts cup that will have one of the spline gears glued into it, and the resized bearing I was working on, installed on the outside of this somewhat looeely defined cup as the rim is only 9.5mm high, just enough to accept the thickness of one of the spline gears. But before I make the final version, I'd like to make this cup the first of two items for a differential() { operation, where the subtracted would be the holes for 6 or 8 flathead screws on a 30mm radius circle, spaced at 60 or 45 dregres. That I assume will take a cylinder for the screw hole, and a dual diameter cyclinder at the top to remove both the bolt hole and remove the contersink for the underside of the flathead screws. And I think I got it, but that for loop still takes a noticable amount of time. See what you folks think. // more of my feeble attempt at making a harmonic drive // this will be the output coupling cup, a shallow // thing that one of the toothed rings will be pressed // and glued into. And the new bearing will be sized to // this parts OD innrd=120.2; // OD of spline part outrd= 129.7; // innr of bearing ID, is from bearings //square size walthk=5.000; // will also be radius increment walhgt=9.5; // height of cup depth walhlf=walhgt*.5; // might be usefull in translate's innrr=.5*innrd; // ditto outrr=.5*outrd; trans=.5*outrr; cupradtmp=innrr+outrr; cupdia=.5*cupradtmp;// another translator 6holes=60; 8holes=45; module disc() { difference() { rotate_extrude($fn=360) union() { translate([trans,2.5,0]) square([outrr,walthk],true); translate([cupdia,walhgt])square([5.0,walhgt],true); }; // Insert bolthole code here, becomes 2nd argument to difference for(hole=[0:8holes:360]) { rotate(hole) union() { translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true); translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); }; }; }; }; disc(); Thanks for any helpfull hints. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
L
larry
Sat, Apr 3, 2021 7:45 PM

On my machine..

Total rendering time: 0 hours, 0 minutes, 5 seconds

On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote:

Greetings all;

First I have switched back to my ender-3 printer, with mods, and its
working quite well once I figured out the math to correct some off
scaling it had.

Now I have composed the output shafts cup that will have one of the
spline gears glued into it, and the resized bearing I was working
on,
installed on the outside of this somewhat looeely defined cup as the
rim
is only 9.5mm high, just enough to accept the thickness of one of
the
spline gears.

But before I make the final version, I'd like to make this cup the
first
of two items for a differential() { operation, where the subtracted
would be the holes for 6 or 8 flathead screws on a 30mm radius
circle,
spaced at 60 or 45 dregres.

That I assume will take a cylinder for the screw hole, and a dual
diameter cyclinder at the top to remove both the bolt hole and
remove
the contersink for the underside of the flathead screws.

And I think I got it, but that for loop still takes a noticable
amount of
time.
See what you folks think.
// more of my feeble attempt at making a harmonic drive
// this will be the output coupling cup, a shallow
// thing that one of the toothed rings will be pressed
// and glued into. And the new bearing will be sized to
// this parts OD
innrd=120.2; // OD of spline part
outrd= 129.7; // innr of bearing ID, is from bearings
//square size
walthk=5.000; // will also be radius increment
walhgt=9.5; // height of cup depth
walhlf=walhgt*.5; // might be usefull in translate's
innrr=.5innrd; // ditto
outrr=.5
outrd;
trans=.5outrr;
cupradtmp=innrr+outrr;
cupdia=.5
cupradtmp;// another translator
6holes=60;
8holes=45;
module disc()
{
difference()
{
rotate_extrude($fn=360)
union()
{
translate([trans,2.5,0]) square([outrr,walthk],true);
translate([cupdia,walhgt])square([5.0,walhgt],true);
};
// Insert bolthole code here, becomes 2nd argument to difference
for(hole=[0:8holes:360])
{
rotate(hole)
union()
{
translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true);
translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true);
};
};
};
};
disc();

Thanks for any helpfull hints.

Cheers, Gene Heskett

On my machine.. Total rendering time: 0 hours, 0 minutes, 5 seconds On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote: > Greetings all; > > First I have switched back to my ender-3 printer, with mods, and its > working quite well once I figured out the math to correct some off > scaling it had. > > Now I have composed the output shafts cup that will have one of the > spline gears glued into it, and the resized bearing I was working > on, > installed on the outside of this somewhat looeely defined cup as the > rim > is only 9.5mm high, just enough to accept the thickness of one of > the > spline gears. > > But before I make the final version, I'd like to make this cup the > first > of two items for a differential() { operation, where the subtracted > would be the holes for 6 or 8 flathead screws on a 30mm radius > circle, > spaced at 60 or 45 dregres. > > That I assume will take a cylinder for the screw hole, and a dual > diameter cyclinder at the top to remove both the bolt hole and > remove > the contersink for the underside of the flathead screws. > > And I think I got it, but that for loop still takes a noticable > amount of > time. > See what you folks think. > // more of my feeble attempt at making a harmonic drive > // this will be the output coupling cup, a shallow > // thing that one of the toothed rings will be pressed > // and glued into. And the new bearing will be sized to > // this parts OD > innrd=120.2; // OD of spline part > outrd= 129.7; // innr of bearing ID, is from bearings > //square size > walthk=5.000; // will also be radius increment > walhgt=9.5; // height of cup depth > walhlf=walhgt*.5; // might be usefull in translate's > innrr=.5*innrd; // ditto > outrr=.5*outrd; > trans=.5*outrr; > cupradtmp=innrr+outrr; > cupdia=.5*cupradtmp;// another translator > 6holes=60; > 8holes=45; > module disc() > { > difference() > { > rotate_extrude($fn=360) > union() > { > translate([trans,2.5,0]) square([outrr,walthk],true); > translate([cupdia,walhgt])square([5.0,walhgt],true); > }; > // Insert bolthole code here, becomes 2nd argument to difference > for(hole=[0:8holes:360]) > { > rotate(hole) > union() > { > translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true); > translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); > }; > }; > }; > }; > disc(); > > Thanks for any helpfull hints. > > Cheers, Gene Heskett
GH
Gene Heskett
Sat, Apr 3, 2021 8:39 PM

On Saturday 03 April 2021 15:45:32 larry wrote:

On my machine..

Total rendering time: 0 hours, 0 minutes, 5 seconds

Sounds about right, remove the for and its under a second.  This is a 6
core i5, with 32G but OpenSCAD is not multithreaded, only usees one core
at a time. Cura uses all 6. gkrellm keeps track of all that for me.

Thanks Larry.
Take care & stay well now.

On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote:

Greetings all;

First I have switched back to my ender-3 printer, with mods, and its
working quite well once I figured out the math to correct some off
scaling it had.

Now I have composed the output shafts cup that will have one of the
spline gears glued into it, and the resized bearing I was working
on,
installed on the outside of this somewhat looeely defined cup as the
rim
is only 9.5mm high, just enough to accept the thickness of one of
the
spline gears.

But before I make the final version, I'd like to make this cup the
first
of two items for a differential() { operation, where the subtracted
would be the holes for 6 or 8 flathead screws on a 30mm radius
circle,
spaced at 60 or 45 dregres.

That I assume will take a cylinder for the screw hole, and a dual
diameter cyclinder at the top to remove both the bolt hole and
remove
the contersink for the underside of the flathead screws.

And I think I got it, but that for loop still takes a noticable
amount of
time.
See what you folks think.
// more of my feeble attempt at making a harmonic drive
// this will be the output coupling cup, a shallow
// thing that one of the toothed rings will be pressed
// and glued into. And the new bearing will be sized to
// this parts OD
innrd=120.2; // OD of spline part
outrd= 129.7; // innr of bearing ID, is from bearings
//square size
walthk=5.000; // will also be radius increment
walhgt=9.5; // height of cup depth
walhlf=walhgt*.5; // might be usefull in translate's
innrr=.5innrd; // ditto
outrr=.5
outrd;
trans=.5outrr;
cupradtmp=innrr+outrr;
cupdia=.5
cupradtmp;// another translator
6holes=60;
8holes=45;
module disc()
{
difference()
{
rotate_extrude($fn=360)
union()
{
translate([trans,2.5,0]) square([outrr,walthk],true);
translate([cupdia,walhgt])square([5.0,walhgt],true);
};
// Insert bolthole code here, becomes 2nd argument to difference
for(hole=[0:8holes:360])
{
rotate(hole)
union()
{
translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true);

translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); };
};
};
};
disc();

Thanks for any helpfull hints.

Cheers, Gene Heskett


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.

On Saturday 03 April 2021 15:45:32 larry wrote: > On my machine.. > > Total rendering time: 0 hours, 0 minutes, 5 seconds > Sounds about right, remove the for and its under a second. This is a 6 core i5, with 32G but OpenSCAD is not multithreaded, only usees one core at a time. Cura uses all 6. gkrellm keeps track of all that for me. Thanks Larry. Take care & stay well now. > On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote: > > Greetings all; > > > > First I have switched back to my ender-3 printer, with mods, and its > > working quite well once I figured out the math to correct some off > > scaling it had. > > > > Now I have composed the output shafts cup that will have one of the > > spline gears glued into it, and the resized bearing I was working > > on, > > installed on the outside of this somewhat looeely defined cup as the > > rim > > is only 9.5mm high, just enough to accept the thickness of one of > > the > > spline gears. > > > > But before I make the final version, I'd like to make this cup the > > first > > of two items for a differential() { operation, where the subtracted > > would be the holes for 6 or 8 flathead screws on a 30mm radius > > circle, > > spaced at 60 or 45 dregres. > > > > That I assume will take a cylinder for the screw hole, and a dual > > diameter cyclinder at the top to remove both the bolt hole and > > remove > > the contersink for the underside of the flathead screws. > > > > And I think I got it, but that for loop still takes a noticable > > amount of > > time. > > See what you folks think. > > // more of my feeble attempt at making a harmonic drive > > // this will be the output coupling cup, a shallow > > // thing that one of the toothed rings will be pressed > > // and glued into. And the new bearing will be sized to > > // this parts OD > > innrd=120.2; // OD of spline part > > outrd= 129.7; // innr of bearing ID, is from bearings > > //square size > > walthk=5.000; // will also be radius increment > > walhgt=9.5; // height of cup depth > > walhlf=walhgt*.5; // might be usefull in translate's > > innrr=.5*innrd; // ditto > > outrr=.5*outrd; > > trans=.5*outrr; > > cupradtmp=innrr+outrr; > > cupdia=.5*cupradtmp;// another translator > > 6holes=60; > > 8holes=45; > > module disc() > > { > > difference() > > { > > rotate_extrude($fn=360) > > union() > > { > > translate([trans,2.5,0]) square([outrr,walthk],true); > > translate([cupdia,walhgt])square([5.0,walhgt],true); > > }; > > // Insert bolthole code here, becomes 2nd argument to difference > > for(hole=[0:8holes:360]) > > { > > rotate(hole) > > union() > > { > > translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true); > > > > translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); }; > > }; > > }; > > }; > > disc(); > > > > Thanks for any helpfull hints. > > > > Cheers, Gene Heskett > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
NH
nop head
Sat, Apr 3, 2021 11:28 PM

3D printing countersinks is not as straightforward as it might seem. See
the article I wrote here:
https://hydraraptor.blogspot.com/2020/12/sinkholes.html and some real world
results here:
https://github.com/nophead/NopSCADlib/issues/134#issuecomment-804221666

On Sat, 3 Apr 2021 at 21:39, Gene Heskett gheskett@shentel.net wrote:

On Saturday 03 April 2021 15:45:32 larry wrote:

On my machine..

Total rendering time: 0 hours, 0 minutes, 5 seconds

Sounds about right, remove the for and its under a second.  This is a 6
core i5, with 32G but OpenSCAD is not multithreaded, only usees one core
at a time. Cura uses all 6. gkrellm keeps track of all that for me.

Thanks Larry.
Take care & stay well now.

On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote:

Greetings all;

First I have switched back to my ender-3 printer, with mods, and its
working quite well once I figured out the math to correct some off
scaling it had.

Now I have composed the output shafts cup that will have one of the
spline gears glued into it, and the resized bearing I was working
on,
installed on the outside of this somewhat looeely defined cup as the
rim
is only 9.5mm high, just enough to accept the thickness of one of
the
spline gears.

But before I make the final version, I'd like to make this cup the
first
of two items for a differential() { operation, where the subtracted
would be the holes for 6 or 8 flathead screws on a 30mm radius
circle,
spaced at 60 or 45 dregres.

That I assume will take a cylinder for the screw hole, and a dual
diameter cyclinder at the top to remove both the bolt hole and
remove
the contersink for the underside of the flathead screws.

And I think I got it, but that for loop still takes a noticable
amount of
time.
See what you folks think.
// more of my feeble attempt at making a harmonic drive
// this will be the output coupling cup, a shallow
// thing that one of the toothed rings will be pressed
// and glued into. And the new bearing will be sized to
// this parts OD
innrd=120.2; // OD of spline part
outrd= 129.7; // innr of bearing ID, is from bearings
//square size
walthk=5.000; // will also be radius increment
walhgt=9.5; // height of cup depth
walhlf=walhgt*.5; // might be usefull in translate's
innrr=.5innrd; // ditto
outrr=.5
outrd;
trans=.5outrr;
cupradtmp=innrr+outrr;
cupdia=.5
cupradtmp;// another translator
6holes=60;
8holes=45;
module disc()
{
difference()
{
rotate_extrude($fn=360)
union()
{
translate([trans,2.5,0]) square([outrr,walthk],true);
translate([cupdia,walhgt])square([5.0,walhgt],true);
};
// Insert bolthole code here, becomes 2nd argument to difference
for(hole=[0:8holes:360])
{
rotate(hole)
union()
{
translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true);

translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); };
};
};
};
disc();

Thanks for any helpfull hints.

Cheers, Gene Heskett


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

3D printing countersinks is not as straightforward as it might seem. See the article I wrote here: https://hydraraptor.blogspot.com/2020/12/sinkholes.html and some real world results here: https://github.com/nophead/NopSCADlib/issues/134#issuecomment-804221666 On Sat, 3 Apr 2021 at 21:39, Gene Heskett <gheskett@shentel.net> wrote: > On Saturday 03 April 2021 15:45:32 larry wrote: > > > On my machine.. > > > > Total rendering time: 0 hours, 0 minutes, 5 seconds > > > Sounds about right, remove the for and its under a second. This is a 6 > core i5, with 32G but OpenSCAD is not multithreaded, only usees one core > at a time. Cura uses all 6. gkrellm keeps track of all that for me. > > Thanks Larry. > Take care & stay well now. > > > On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote: > > > Greetings all; > > > > > > First I have switched back to my ender-3 printer, with mods, and its > > > working quite well once I figured out the math to correct some off > > > scaling it had. > > > > > > Now I have composed the output shafts cup that will have one of the > > > spline gears glued into it, and the resized bearing I was working > > > on, > > > installed on the outside of this somewhat looeely defined cup as the > > > rim > > > is only 9.5mm high, just enough to accept the thickness of one of > > > the > > > spline gears. > > > > > > But before I make the final version, I'd like to make this cup the > > > first > > > of two items for a differential() { operation, where the subtracted > > > would be the holes for 6 or 8 flathead screws on a 30mm radius > > > circle, > > > spaced at 60 or 45 dregres. > > > > > > That I assume will take a cylinder for the screw hole, and a dual > > > diameter cyclinder at the top to remove both the bolt hole and > > > remove > > > the contersink for the underside of the flathead screws. > > > > > > And I think I got it, but that for loop still takes a noticable > > > amount of > > > time. > > > See what you folks think. > > > // more of my feeble attempt at making a harmonic drive > > > // this will be the output coupling cup, a shallow > > > // thing that one of the toothed rings will be pressed > > > // and glued into. And the new bearing will be sized to > > > // this parts OD > > > innrd=120.2; // OD of spline part > > > outrd= 129.7; // innr of bearing ID, is from bearings > > > //square size > > > walthk=5.000; // will also be radius increment > > > walhgt=9.5; // height of cup depth > > > walhlf=walhgt*.5; // might be usefull in translate's > > > innrr=.5*innrd; // ditto > > > outrr=.5*outrd; > > > trans=.5*outrr; > > > cupradtmp=innrr+outrr; > > > cupdia=.5*cupradtmp;// another translator > > > 6holes=60; > > > 8holes=45; > > > module disc() > > > { > > > difference() > > > { > > > rotate_extrude($fn=360) > > > union() > > > { > > > translate([trans,2.5,0]) square([outrr,walthk],true); > > > translate([cupdia,walhgt])square([5.0,walhgt],true); > > > }; > > > // Insert bolthole code here, becomes 2nd argument to difference > > > for(hole=[0:8holes:360]) > > > { > > > rotate(hole) > > > union() > > > { > > > translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true); > > > > > > translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); }; > > > }; > > > }; > > > }; > > > disc(); > > > > > > Thanks for any helpfull hints. > > > > > > Cheers, Gene Heskett > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/gene> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
RW
Ron Wheeler
Sat, Apr 3, 2021 11:46 PM

Great post!

On 2021-04-03 7:28 p.m., nop head wrote:

3D printing countersinks is not as straightforward as it might seem.
See the article I wrote here:
https://hydraraptor.blogspot.com/2020/12/sinkholes.html
https://hydraraptor.blogspot.com/2020/12/sinkholes.html and some
real world results here:
https://github.com/nophead/NopSCADlib/issues/134#issuecomment-804221666
https://github.com/nophead/NopSCADlib/issues/134#issuecomment-804221666

On Sat, 3 Apr 2021 at 21:39, Gene Heskett <gheskett@shentel.net
mailto:gheskett@shentel.net> wrote:

 On Saturday 03 April 2021 15:45:32 larry wrote:

On my machine..

Total rendering time: 0 hours, 0 minutes, 5 seconds

 Sounds about right, remove the for and its under a second. This is
 a 6
 core i5, with 32G but OpenSCAD is not multithreaded, only usees
 one core
 at a time. Cura uses all 6. gkrellm keeps track of all that for me.

 Thanks Larry.
 Take care & stay well now.

On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote:

Greetings all;

First I have switched back to my ender-3 printer, with mods,

 and its

working quite well once I figured out the math to correct some off
scaling it had.

Now I have composed the output shafts cup that will have one

 of the

spline gears glued into it, and the resized bearing I was working
on,
installed on the outside of this somewhat looeely defined cup

 as the

rim
is only 9.5mm high, just enough to accept the thickness of one of
the
spline gears.

But before I make the final version, I'd like to make this cup the
first
of two items for a differential() { operation, where the

 subtracted

would be the holes for 6 or 8 flathead screws on a 30mm radius
circle,
spaced at 60 or 45 dregres.

That I assume will take a cylinder for the screw hole, and a dual
diameter cyclinder at the top to remove both the bolt hole and
remove
the contersink for the underside of the flathead screws.

And I think I got it, but that for loop still takes a noticable
amount of
time.
See what you folks think.
// more of my feeble attempt at making a harmonic drive
// this will be the output coupling cup, a shallow
// thing that one of the toothed rings will be pressed
// and glued into. And the new bearing will be sized to
// this parts OD
innrd=120.2; // OD of spline part
outrd= 129.7; // innr of bearing ID, is from bearings
//square size
walthk=5.000; // will also be radius increment
walhgt=9.5; // height of cup depth
walhlf=walhgt*.5; // might be usefull in translate's
innrr=.5innrd; // ditto
outrr=.5
outrd;
trans=.5outrr;
cupradtmp=innrr+outrr;
cupdia=.5
cupradtmp;// another translator
6holes=60;
8holes=45;
module disc()
{
   difference()
   {
     rotate_extrude($fn=360)
     union()
     {
     translate([trans,2.5,0]) square([outrr,walthk],true);
 translate([cupdia,walhgt])square([5.0,walhgt],true);
     };
// Insert bolthole code here, becomes 2nd argument to difference
     for(hole=[0:8holes:360])
     {
       rotate(hole)
       union()
       {
 translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true);

translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); };
     };
   };
};
disc();

Thanks for any helpfull hints.

Cheers, Gene Heskett


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

 <mailto:discuss-leave@lists.openscad.org>


 Cheers, Gene Heskett
 -- 
 "There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
 -Ed Howdershelt (Author)
 If we desire respect for the law, we must first make the law
 respectable.
  - Louis D. Brandeis
 Genes Web page <http://geneslinuxbox.net:6309/gene
 <http://geneslinuxbox.net:6309/gene>>
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org
 <mailto:discuss-leave@lists.openscad.org>

OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
Ron Wheeler
Artifact Software
438-345-3369
rwheeler@artifact-software.com

Great post! On 2021-04-03 7:28 p.m., nop head wrote: > 3D printing countersinks is not as straightforward as it might seem. > See the article I wrote here: > https://hydraraptor.blogspot.com/2020/12/sinkholes.html > <https://hydraraptor.blogspot.com/2020/12/sinkholes.html> and some > real world results here: > https://github.com/nophead/NopSCADlib/issues/134#issuecomment-804221666 > <https://github.com/nophead/NopSCADlib/issues/134#issuecomment-804221666> > > > > > On Sat, 3 Apr 2021 at 21:39, Gene Heskett <gheskett@shentel.net > <mailto:gheskett@shentel.net>> wrote: > > On Saturday 03 April 2021 15:45:32 larry wrote: > > > On my machine.. > > > > Total rendering time: 0 hours, 0 minutes, 5 seconds > > > Sounds about right, remove the for and its under a second. This is > a 6 > core i5, with 32G but OpenSCAD is not multithreaded, only usees > one core > at a time. Cura uses all 6. gkrellm keeps track of all that for me. > > Thanks Larry. > Take care & stay well now. > > > On Sat, 2021-04-03 at 14:11 -0400, Gene Heskett wrote: > > > Greetings all; > > > > > > First I have switched back to my ender-3 printer, with mods, > and its > > > working quite well once I figured out the math to correct some off > > > scaling it had. > > > > > > Now I have composed the output shafts cup that will have one > of the > > > spline gears glued into it, and the resized bearing I was working > > > on, > > > installed on the outside of this somewhat looeely defined cup > as the > > > rim > > > is only 9.5mm high, just enough to accept the thickness of one of > > > the > > > spline gears. > > > > > > But before I make the final version, I'd like to make this cup the > > > first > > > of two items for a differential() { operation, where the > subtracted > > > would be the holes for 6 or 8 flathead screws on a 30mm radius > > > circle, > > > spaced at 60 or 45 dregres. > > > > > > That I assume will take a cylinder for the screw hole, and a dual > > > diameter cyclinder at the top to remove both the bolt hole and > > > remove > > > the contersink for the underside of the flathead screws. > > > > > > And I think I got it, but that for loop still takes a noticable > > > amount of > > > time. > > > See what you folks think. > > > // more of my feeble attempt at making a harmonic drive > > > // this will be the output coupling cup, a shallow > > > // thing that one of the toothed rings will be pressed > > > // and glued into. And the new bearing will be sized to > > > // this parts OD > > > innrd=120.2; // OD of spline part > > > outrd= 129.7; // innr of bearing ID, is from bearings > > > //square size > > > walthk=5.000; // will also be radius increment > > > walhgt=9.5; // height of cup depth > > > walhlf=walhgt*.5; // might be usefull in translate's > > > innrr=.5*innrd; // ditto > > > outrr=.5*outrd; > > > trans=.5*outrr; > > > cupradtmp=innrr+outrr; > > > cupdia=.5*cupradtmp;// another translator > > > 6holes=60; > > > 8holes=45; > > > module disc() > > > { > > >   difference() > > >   { > > >     rotate_extrude($fn=360) > > >     union() > > >     { > > >     translate([trans,2.5,0]) square([outrr,walthk],true); > > >  translate([cupdia,walhgt])square([5.0,walhgt],true); > > >     }; > > > // Insert bolthole code here, becomes 2nd argument to difference > > >     for(hole=[0:8holes:360]) > > >     { > > >       rotate(hole) > > >       union() > > >       { > > >  translate([30,0,-.5])cylinder(4,d=2.5,$fn=32,true); > > > > > > translate([30,0,3.5])cylinder(2.5,r1=2.5,r2=4.5,$fn=32,true); }; > > >     }; > > >   }; > > > }; > > > disc(); > > > > > > Thanks for any helpfull hints. > > > > > > Cheers, Gene Heskett > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > <mailto:discuss-leave@lists.openscad.org> > > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: >  soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > If we desire respect for the law, we must first make the law > respectable. >  - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/gene > <http://geneslinuxbox.net:6309/gene>> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > <mailto:discuss-leave@lists.openscad.org> > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- Ron Wheeler Artifact Software 438-345-3369 rwheeler@artifact-software.com
GH
Gene Heskett
Sun, Apr 4, 2021 1:21 AM

On Saturday 03 April 2021 19:28:44 nop head wrote:

3D printing countersinks is not as straightforward as it might seem.
See the article I wrote here:
https://hydraraptor.blogspot.com/2020/12/sinkholes.html and some real
world results here:
https://github.com/nophead/NopSCADlib/issues/134#issuecomment-80422166
6

I must say thats quite a mouthfull!

Now I should figure out how to use it. The code I have printing right now
may not have the correct cone angle, and I gave up getting a hole that
clears the screw as anything I tried to make it bigger than about 2
skinny mm's, gave the cylinder a taper.  So I made sure I had wall to
ream out in cura, and its printing now.

Thank you very much.  But I should probably have a real name for
copyright attribution?  Oh wait, first line covers it.

Take care Chris, and stay well.

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.

On Saturday 03 April 2021 19:28:44 nop head wrote: > 3D printing countersinks is not as straightforward as it might seem. > See the article I wrote here: > https://hydraraptor.blogspot.com/2020/12/sinkholes.html and some real > world results here: > https://github.com/nophead/NopSCADlib/issues/134#issuecomment-80422166 >6 > I must say thats quite a mouthfull! Now I should figure out how to use it. The code I have printing right now may not have the correct cone angle, and I gave up getting a hole that clears the screw as anything I tried to make it bigger than about 2 skinny mm's, gave the cylinder a taper. So I made sure I had wall to ream out in cura, and its printing now. Thank you very much. But I should probably have a real name for copyright attribution? Oh wait, first line covers it. Take care Chris, and stay well. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>