discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

module is ignored

GH
Gene Heskett
Tue, Jun 22, 2021 3:19 PM

Greetings all;

I have composed this script to cap the output side of a harmonic drive:
But the bearing module is totally ignored.  As seperate code elsewhere in
this drive it works great.

// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
// and a timing belt pulley for output coupling.
// turn upside down to print so no supports needed
// will superglue timing pulley in center hole, and make bearing race
// addition later after verifying fit.

IDofspl=67.64;// to fit OD of 60 or 62 tooth spline
splsocht=6.00;// height of cup for spline
ODofCup=IDofspl+splsocht*2;// incorporate bearing in space
echo(11,ODofCup);
bb=4.36;// crosman bb dia plus clearance
//instclr=.4100;
// need some data for rotate_extrude
ctr_ht=splsocht/2;// center bb groove vertically
innr=ODofCup-splsocht/2;// get radius of bb groove
bbofs=splsocht/2;// might be useful
$fn=360;
translate([0,0,splsocht/2])
difference() {
// builds inner|outer walls of splined ring socket
cylinder(h=splsocht,d=ODofCup,center=true);// outer
cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st subtract
bearing();
};// ends difference from line 20
// now cap it, this works! turn upside down to render
translate([0,0,splsocht+1.5]) // looks good
difference() {
cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in center
cylinder(h=splsocht,d=20,center=true);
};

// this code generates a [( )] shape for a ball bearing race pair in
// another file
module bearing() {
rotate_extrude()
translate([ODofCup,0,-10]) // below main gfx so can see
difference()
{
square(splsocht, center = true);
circle(d=bb);
square([.32splsocht, 1.1splsocht],center=true);
}
};

With that -10 in the translate I should see it below the main image and
could adjust it up into the difference, but no hits, no reported errors,
its just not there.

Once I can see it as a seperate item, the difference s/b become a union,
and the first square removed to get the shape for the 2nd removal in the
top difference chain.

I've been a day and a half now playing all those monkeys writing
shakespear, what am I doing wrong?

Thanks all.

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; I have composed this script to cap the output side of a harmonic drive: But the bearing module is totally ignored. As seperate code elsewhere in this drive it works great. === // new output disk to contain 62 tooth spline // and incorporate for space savings the output shaft bearings // and a timing belt pulley for output coupling. // turn upside down to print so no supports needed // will superglue timing pulley in center hole, and make bearing race // addition later after verifying fit. IDofspl=67.64;// to fit OD of 60 or 62 tooth spline splsocht=6.00;// height of cup for spline ODofCup=IDofspl+splsocht*2;// incorporate bearing in space echo(11,ODofCup); bb=4.36;// crosman bb dia plus clearance //instclr=.4100; // need some data for rotate_extrude ctr_ht=splsocht/2;// center bb groove vertically innr=ODofCup-splsocht/2;// get radius of bb groove bbofs=splsocht/2;// might be useful $fn=360; translate([0,0,splsocht/2]) difference() { // builds inner|outer walls of splined ring socket cylinder(h=splsocht,d=ODofCup,center=true);// outer cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st subtract bearing(); };// ends difference from line 20 // now cap it, this works! turn upside down to render translate([0,0,splsocht+1.5]) // looks good difference() { cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in center cylinder(h=splsocht,d=20,center=true); }; // this code generates a [( )] shape for a ball bearing race pair in // another file module bearing() { rotate_extrude() translate([ODofCup,0,-10]) // below main gfx so can see difference() { square(splsocht, center = true); circle(d=bb); square([.32*splsocht, 1.1*splsocht],center=true); } }; === With that -10 in the translate I should see it below the main image and could adjust it up into the difference, but no hits, no reported errors, its just not there. Once I can see it as a seperate item, the difference s/b become a union, and the first square removed to get the shape for the 2nd removal in the top difference chain. I've been a day and a half now playing all those monkeys writing shakespear, what am I doing wrong? Thanks all. 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>
LM
Leonard Martin Struttmann
Tue, Jun 22, 2021 3:32 PM

Put a "#" in front of the bearing() call, i.e.,

#bearing();

...to see where it is.

On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett gheskett@shentel.net wrote:

Greetings all;

I have composed this script to cap the output side of a harmonic drive:
But the bearing module is totally ignored.  As seperate code elsewhere in
this drive it works great.

// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
// and a timing belt pulley for output coupling.
// turn upside down to print so no supports needed
// will superglue timing pulley in center hole, and make bearing race
// addition later after verifying fit.

IDofspl=67.64;// to fit OD of 60 or 62 tooth spline
splsocht=6.00;// height of cup for spline
ODofCup=IDofspl+splsocht*2;// incorporate bearing in space
echo(11,ODofCup);
bb=4.36;// crosman bb dia plus clearance
//instclr=.4100;
// need some data for rotate_extrude
ctr_ht=splsocht/2;// center bb groove vertically
innr=ODofCup-splsocht/2;// get radius of bb groove
bbofs=splsocht/2;// might be useful
$fn=360;
translate([0,0,splsocht/2])
difference() {
// builds inner|outer walls of splined ring socket
cylinder(h=splsocht,d=ODofCup,center=true);// outer
cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st subtract
bearing();
};// ends difference from line 20
// now cap it, this works! turn upside down to render
translate([0,0,splsocht+1.5]) // looks good
difference() {
cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in center
cylinder(h=splsocht,d=20,center=true);
};

// this code generates a [( )] shape for a ball bearing race pair in
// another file
module bearing() {
rotate_extrude()
translate([ODofCup,0,-10]) // below main gfx so can see
difference()
{
square(splsocht, center = true);
circle(d=bb);
square([.32splsocht, 1.1splsocht],center=true);
}
};

With that -10 in the translate I should see it below the main image and
could adjust it up into the difference, but no hits, no reported errors,
its just not there.

Once I can see it as a seperate item, the difference s/b become a union,
and the first square removed to get the shape for the 2nd removal in the
top difference chain.

I've been a day and a half now playing all those monkeys writing
shakespear, what am I doing wrong?

Thanks all.

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

Put a "#" in front of the bearing() call, i.e., #bearing(); ...to see where it is. On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett <gheskett@shentel.net> wrote: > Greetings all; > > I have composed this script to cap the output side of a harmonic drive: > But the bearing module is totally ignored. As seperate code elsewhere in > this drive it works great. > === > // new output disk to contain 62 tooth spline > // and incorporate for space savings the output shaft bearings > // and a timing belt pulley for output coupling. > // turn upside down to print so no supports needed > // will superglue timing pulley in center hole, and make bearing race > // addition later after verifying fit. > > IDofspl=67.64;// to fit OD of 60 or 62 tooth spline > splsocht=6.00;// height of cup for spline > ODofCup=IDofspl+splsocht*2;// incorporate bearing in space > echo(11,ODofCup); > bb=4.36;// crosman bb dia plus clearance > //instclr=.4100; > // need some data for rotate_extrude > ctr_ht=splsocht/2;// center bb groove vertically > innr=ODofCup-splsocht/2;// get radius of bb groove > bbofs=splsocht/2;// might be useful > $fn=360; > translate([0,0,splsocht/2]) > difference() { > // builds inner|outer walls of splined ring socket > cylinder(h=splsocht,d=ODofCup,center=true);// outer > cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st subtract > bearing(); > };// ends difference from line 20 > // now cap it, this works! turn upside down to render > translate([0,0,splsocht+1.5]) // looks good > difference() { > cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in center > cylinder(h=splsocht,d=20,center=true); > }; > > // this code generates a [( )] shape for a ball bearing race pair in > // another file > module bearing() { > rotate_extrude() > translate([ODofCup,0,-10]) // below main gfx so can see > difference() > { > square(splsocht, center = true); > circle(d=bb); > square([.32*splsocht, 1.1*splsocht],center=true); > } > }; > === > With that -10 in the translate I should see it below the main image and > could adjust it up into the difference, but no hits, no reported errors, > its just not there. > > Once I can see it as a seperate item, the difference s/b become a union, > and the first square removed to get the shape for the 2nd removal in the > top difference chain. > > I've been a day and a half now playing all those monkeys writing > shakespear, what am I doing wrong? > > Thanks all. > > 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 >
JB
Jordan Brown
Tue, Jun 22, 2021 3:32 PM

The # modifier is your friend.  Put a # in front of the call to
bearing() and the problem will become mostly obvious.

In bearing(), you've translated the 2D object out to x=ODofCup.  But
ODofCup is presumably the diameter, and when you translate something
out X and then rotationally extrude it, the translation is the radius.

The # modifier is your friend.  Put a # in front of the call to bearing() and the problem will become mostly obvious. In bearing(), you've translated the 2D object out to x=ODofCup.  But ODofCup is presumably the *diameter*, and when you translate something out X and then rotationally extrude it, the translation is the *radius*.
GH
Gene Heskett
Tue, Jun 22, 2021 4:16 PM

On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote:

Put a "#" in front of the bearing() call, i.e.,

#bearing();

...to see where it is.

Aha! But it is ignoring the z translation.  Maybe I can get somewhere
now.

Thanks, I didn't know that trick. The cheat page shows it underscored,
and 'merican keyboards can't do that overtype.

On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett gheskett@shentel.net

wrote:

Greetings all;

I have composed this script to cap the output side of a harmonic
drive: But the bearing module is totally ignored.  As seperate code
elsewhere in this drive it works great.

// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
// and a timing belt pulley for output coupling.
// turn upside down to print so no supports needed
// will superglue timing pulley in center hole, and make bearing
race // addition later after verifying fit.

IDofspl=67.64;// to fit OD of 60 or 62 tooth spline
splsocht=6.00;// height of cup for spline
ODofCup=IDofspl+splsocht*2;// incorporate bearing in space
echo(11,ODofCup);
bb=4.36;// crosman bb dia plus clearance
//instclr=.4100;
// need some data for rotate_extrude
ctr_ht=splsocht/2;// center bb groove vertically
innr=ODofCup-splsocht/2;// get radius of bb groove
bbofs=splsocht/2;// might be useful
$fn=360;
translate([0,0,splsocht/2])
difference() {
// builds inner|outer walls of splined ring socket
cylinder(h=splsocht,d=ODofCup,center=true);// outer
cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st
subtract bearing();
};// ends difference from line 20
// now cap it, this works! turn upside down to render
translate([0,0,splsocht+1.5]) // looks good
difference() {
cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in
center cylinder(h=splsocht,d=20,center=true);
};

// this code generates a [( )] shape for a ball bearing race pair in
// another file
module bearing() {
rotate_extrude()
translate([ODofCup,0,-10]) // below main gfx so can see
difference()
{
square(splsocht, center = true);
circle(d=bb);
square([.32splsocht, 1.1splsocht],center=true);
}
};

With that -10 in the translate I should see it below the main image
and could adjust it up into the difference, but no hits, no reported
errors, its just not there.

Once I can see it as a seperate item, the difference s/b become a
union, and the first square removed to get the shape for the 2nd
removal in the top difference chain.

I've been a day and a half now playing all those monkeys writing
shakespear, what am I doing wrong?

Thanks all.

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

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 Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote: > Put a "#" in front of the bearing() call, i.e., > > #bearing(); > > ...to see where it is. Aha! But it is ignoring the z translation. Maybe I can get somewhere now. Thanks, I didn't know that trick. The cheat page shows it underscored, and 'merican keyboards can't do that overtype. > On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett <gheskett@shentel.net> wrote: > > Greetings all; > > > > I have composed this script to cap the output side of a harmonic > > drive: But the bearing module is totally ignored. As seperate code > > elsewhere in this drive it works great. > > === > > // new output disk to contain 62 tooth spline > > // and incorporate for space savings the output shaft bearings > > // and a timing belt pulley for output coupling. > > // turn upside down to print so no supports needed > > // will superglue timing pulley in center hole, and make bearing > > race // addition later after verifying fit. > > > > IDofspl=67.64;// to fit OD of 60 or 62 tooth spline > > splsocht=6.00;// height of cup for spline > > ODofCup=IDofspl+splsocht*2;// incorporate bearing in space > > echo(11,ODofCup); > > bb=4.36;// crosman bb dia plus clearance > > //instclr=.4100; > > // need some data for rotate_extrude > > ctr_ht=splsocht/2;// center bb groove vertically > > innr=ODofCup-splsocht/2;// get radius of bb groove > > bbofs=splsocht/2;// might be useful > > $fn=360; > > translate([0,0,splsocht/2]) > > difference() { > > // builds inner|outer walls of splined ring socket > > cylinder(h=splsocht,d=ODofCup,center=true);// outer > > cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st > > subtract bearing(); > > };// ends difference from line 20 > > // now cap it, this works! turn upside down to render > > translate([0,0,splsocht+1.5]) // looks good > > difference() { > > cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in > > center cylinder(h=splsocht,d=20,center=true); > > }; > > > > // this code generates a [( )] shape for a ball bearing race pair in > > // another file > > module bearing() { > > rotate_extrude() > > translate([ODofCup,0,-10]) // below main gfx so can see > > difference() > > { > > square(splsocht, center = true); > > circle(d=bb); > > square([.32*splsocht, 1.1*splsocht],center=true); > > } > > }; > > === > > With that -10 in the translate I should see it below the main image > > and could adjust it up into the difference, but no hits, no reported > > errors, its just not there. > > > > Once I can see it as a seperate item, the difference s/b become a > > union, and the first square removed to get the shape for the 2nd > > removal in the top difference chain. > > > > I've been a day and a half now playing all those monkeys writing > > shakespear, what am I doing wrong? > > > > Thanks all. > > > > 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 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>
LM
Leonard Martin Struttmann
Tue, Jun 22, 2021 4:29 PM

The # is underlined on the cheat page to show that the character on that
page is a link.  Click on the underlined # to get more information.

In practice, just use the modifier characters in front of the modules you
are calling:

#bearing();

%fred();

!barney();

*wilma();

On Tue, Jun 22, 2021 at 11:16 AM Gene Heskett gheskett@shentel.net wrote:

On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote:

Put a "#" in front of the bearing() call, i.e.,

#bearing();

...to see where it is.

Aha! But it is ignoring the z translation.  Maybe I can get somewhere
now.

Thanks, I didn't know that trick. The cheat page shows it underscored,
and 'merican keyboards can't do that overtype.

On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett gheskett@shentel.net

wrote:

Greetings all;

I have composed this script to cap the output side of a harmonic
drive: But the bearing module is totally ignored.  As seperate code
elsewhere in this drive it works great.

// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
// and a timing belt pulley for output coupling.
// turn upside down to print so no supports needed
// will superglue timing pulley in center hole, and make bearing
race // addition later after verifying fit.

IDofspl=67.64;// to fit OD of 60 or 62 tooth spline
splsocht=6.00;// height of cup for spline
ODofCup=IDofspl+splsocht*2;// incorporate bearing in space
echo(11,ODofCup);
bb=4.36;// crosman bb dia plus clearance
//instclr=.4100;
// need some data for rotate_extrude
ctr_ht=splsocht/2;// center bb groove vertically
innr=ODofCup-splsocht/2;// get radius of bb groove
bbofs=splsocht/2;// might be useful
$fn=360;
translate([0,0,splsocht/2])
difference() {
// builds inner|outer walls of splined ring socket
cylinder(h=splsocht,d=ODofCup,center=true);// outer
cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st
subtract bearing();
};// ends difference from line 20
// now cap it, this works! turn upside down to render
translate([0,0,splsocht+1.5]) // looks good
difference() {
cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in
center cylinder(h=splsocht,d=20,center=true);
};

// this code generates a [( )] shape for a ball bearing race pair in
// another file
module bearing() {
rotate_extrude()
translate([ODofCup,0,-10]) // below main gfx so can see
difference()
{
square(splsocht, center = true);
circle(d=bb);
square([.32splsocht, 1.1splsocht],center=true);
}
};

With that -10 in the translate I should see it below the main image
and could adjust it up into the difference, but no hits, no reported
errors, its just not there.

Once I can see it as a seperate item, the difference s/b become a
union, and the first square removed to get the shape for the 2nd
removal in the top difference chain.

I've been a day and a half now playing all those monkeys writing
shakespear, what am I doing wrong?

Thanks all.

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

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

The # is underlined on the cheat page to show that the character on that page is a link. Click on the underlined # to get more information. In practice, just use the modifier characters in front of the modules you are calling: #bearing(); %fred(); !barney(); *wilma(); On Tue, Jun 22, 2021 at 11:16 AM Gene Heskett <gheskett@shentel.net> wrote: > On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote: > > > Put a "#" in front of the bearing() call, i.e., > > > > #bearing(); > > > > ...to see where it is. > > Aha! But it is ignoring the z translation. Maybe I can get somewhere > now. > > Thanks, I didn't know that trick. The cheat page shows it underscored, > and 'merican keyboards can't do that overtype. > > > On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett <gheskett@shentel.net> > wrote: > > > Greetings all; > > > > > > I have composed this script to cap the output side of a harmonic > > > drive: But the bearing module is totally ignored. As seperate code > > > elsewhere in this drive it works great. > > > === > > > // new output disk to contain 62 tooth spline > > > // and incorporate for space savings the output shaft bearings > > > // and a timing belt pulley for output coupling. > > > // turn upside down to print so no supports needed > > > // will superglue timing pulley in center hole, and make bearing > > > race // addition later after verifying fit. > > > > > > IDofspl=67.64;// to fit OD of 60 or 62 tooth spline > > > splsocht=6.00;// height of cup for spline > > > ODofCup=IDofspl+splsocht*2;// incorporate bearing in space > > > echo(11,ODofCup); > > > bb=4.36;// crosman bb dia plus clearance > > > //instclr=.4100; > > > // need some data for rotate_extrude > > > ctr_ht=splsocht/2;// center bb groove vertically > > > innr=ODofCup-splsocht/2;// get radius of bb groove > > > bbofs=splsocht/2;// might be useful > > > $fn=360; > > > translate([0,0,splsocht/2]) > > > difference() { > > > // builds inner|outer walls of splined ring socket > > > cylinder(h=splsocht,d=ODofCup,center=true);// outer > > > cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st > > > subtract bearing(); > > > };// ends difference from line 20 > > > // now cap it, this works! turn upside down to render > > > translate([0,0,splsocht+1.5]) // looks good > > > difference() { > > > cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in > > > center cylinder(h=splsocht,d=20,center=true); > > > }; > > > > > > // this code generates a [( )] shape for a ball bearing race pair in > > > // another file > > > module bearing() { > > > rotate_extrude() > > > translate([ODofCup,0,-10]) // below main gfx so can see > > > difference() > > > { > > > square(splsocht, center = true); > > > circle(d=bb); > > > square([.32*splsocht, 1.1*splsocht],center=true); > > > } > > > }; > > > === > > > With that -10 in the translate I should see it below the main image > > > and could adjust it up into the difference, but no hits, no reported > > > errors, its just not there. > > > > > > Once I can see it as a seperate item, the difference s/b become a > > > union, and the first square removed to get the shape for the 2nd > > > removal in the top difference chain. > > > > > > I've been a day and a half now playing all those monkeys writing > > > shakespear, what am I doing wrong? > > > > > > Thanks all. > > > > > > 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 > > > 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 >
L
larry
Tue, Jun 22, 2021 4:31 PM

On Tue, 2021-06-22 at 12:16 -0400, Gene Heskett wrote:

On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote:

Put a "#" in front of the bearing() call, i.e.,
#bearing();
...to see where it is.

Aha! But it is ignoring the z translation.  Maybe I can get somewhere
now.

Thanks, I didn't know that trick. The cheat page shows it
underscored, and 'merican keyboards can't do that overtype.

Everything in the Cheat Sheet is underscored.
That cheat sheet is one VERY handy thing. Whenever you have some time,
it's worth browsing it.

Right up there with the # is !, %, and *, which are worth a look.

Of particular interest (to me, at least), is the %. It may not seem
very useful at first glance, but it's handy to use for positioning
things like motors, components, screws, etc. that you want to visualize
but not render.

On Tue, 2021-06-22 at 12:16 -0400, Gene Heskett wrote: > On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote: > > Put a "#" in front of the bearing() call, i.e., > > #bearing(); > > ...to see where it is. > Aha! But it is ignoring the z translation. Maybe I can get somewhere > now. > > Thanks, I didn't know that trick. The cheat page shows it > underscored, and 'merican keyboards can't do that overtype. Everything in the Cheat Sheet is underscored. That cheat sheet is one VERY handy thing. Whenever you have some time, it's worth browsing it. Right up there with the # is !, %, and *, which are worth a look. Of particular interest (to me, at least), is the %. It may not seem very useful at first glance, but it's handy to use for positioning things like motors, components, screws, etc. that you want to visualize but not render.
LM
Leonard Martin Struttmann
Tue, Jun 22, 2021 4:37 PM

You are mixing 2D and 3D operations.

Make this change to bearing:

module bearing() {
translate([0,0,-10]) // below main gfx so can see  THIS IS A 3D TRANSLATION
rotate_extrude()
translate([ODofCup,0]) // below main gfx so can see  THIS IS A 2D
TRANSLATION

On Tue, Jun 22, 2021 at 11:16 AM Gene Heskett gheskett@shentel.net wrote:

On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote:

Put a "#" in front of the bearing() call, i.e.,

#bearing();

...to see where it is.

Aha! But it is ignoring the z translation.  Maybe I can get somewhere
now.

Thanks, I didn't know that trick. The cheat page shows it underscored,
and 'merican keyboards can't do that overtype.

On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett gheskett@shentel.net

wrote:

Greetings all;

I have composed this script to cap the output side of a harmonic
drive: But the bearing module is totally ignored.  As seperate code
elsewhere in this drive it works great.

// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
// and a timing belt pulley for output coupling.
// turn upside down to print so no supports needed
// will superglue timing pulley in center hole, and make bearing
race // addition later after verifying fit.

IDofspl=67.64;// to fit OD of 60 or 62 tooth spline
splsocht=6.00;// height of cup for spline
ODofCup=IDofspl+splsocht*2;// incorporate bearing in space
echo(11,ODofCup);
bb=4.36;// crosman bb dia plus clearance
//instclr=.4100;
// need some data for rotate_extrude
ctr_ht=splsocht/2;// center bb groove vertically
innr=ODofCup-splsocht/2;// get radius of bb groove
bbofs=splsocht/2;// might be useful
$fn=360;
translate([0,0,splsocht/2])
difference() {
// builds inner|outer walls of splined ring socket
cylinder(h=splsocht,d=ODofCup,center=true);// outer
cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st
subtract bearing();
};// ends difference from line 20
// now cap it, this works! turn upside down to render
translate([0,0,splsocht+1.5]) // looks good
difference() {
cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in
center cylinder(h=splsocht,d=20,center=true);
};

// this code generates a [( )] shape for a ball bearing race pair in
// another file
module bearing() {
rotate_extrude()
translate([ODofCup,0,-10]) // below main gfx so can see
difference()
{
square(splsocht, center = true);
circle(d=bb);
square([.32splsocht, 1.1splsocht],center=true);
}
};

With that -10 in the translate I should see it below the main image
and could adjust it up into the difference, but no hits, no reported
errors, its just not there.

Once I can see it as a seperate item, the difference s/b become a
union, and the first square removed to get the shape for the 2nd
removal in the top difference chain.

I've been a day and a half now playing all those monkeys writing
shakespear, what am I doing wrong?

Thanks all.

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

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

You are mixing 2D and 3D operations. Make this change to bearing: module bearing() { translate([0,0,-10]) // below main gfx so can see THIS IS A 3D TRANSLATION rotate_extrude() translate([ODofCup,0]) // below main gfx so can see THIS IS A 2D TRANSLATION On Tue, Jun 22, 2021 at 11:16 AM Gene Heskett <gheskett@shentel.net> wrote: > On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote: > > > Put a "#" in front of the bearing() call, i.e., > > > > #bearing(); > > > > ...to see where it is. > > Aha! But it is ignoring the z translation. Maybe I can get somewhere > now. > > Thanks, I didn't know that trick. The cheat page shows it underscored, > and 'merican keyboards can't do that overtype. > > > On Tue, Jun 22, 2021 at 10:20 AM Gene Heskett <gheskett@shentel.net> > wrote: > > > Greetings all; > > > > > > I have composed this script to cap the output side of a harmonic > > > drive: But the bearing module is totally ignored. As seperate code > > > elsewhere in this drive it works great. > > > === > > > // new output disk to contain 62 tooth spline > > > // and incorporate for space savings the output shaft bearings > > > // and a timing belt pulley for output coupling. > > > // turn upside down to print so no supports needed > > > // will superglue timing pulley in center hole, and make bearing > > > race // addition later after verifying fit. > > > > > > IDofspl=67.64;// to fit OD of 60 or 62 tooth spline > > > splsocht=6.00;// height of cup for spline > > > ODofCup=IDofspl+splsocht*2;// incorporate bearing in space > > > echo(11,ODofCup); > > > bb=4.36;// crosman bb dia plus clearance > > > //instclr=.4100; > > > // need some data for rotate_extrude > > > ctr_ht=splsocht/2;// center bb groove vertically > > > innr=ODofCup-splsocht/2;// get radius of bb groove > > > bbofs=splsocht/2;// might be useful > > > $fn=360; > > > translate([0,0,splsocht/2]) > > > difference() { > > > // builds inner|outer walls of splined ring socket > > > cylinder(h=splsocht,d=ODofCup,center=true);// outer > > > cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st > > > subtract bearing(); > > > };// ends difference from line 20 > > > // now cap it, this works! turn upside down to render > > > translate([0,0,splsocht+1.5]) // looks good > > > difference() { > > > cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in > > > center cylinder(h=splsocht,d=20,center=true); > > > }; > > > > > > // this code generates a [( )] shape for a ball bearing race pair in > > > // another file > > > module bearing() { > > > rotate_extrude() > > > translate([ODofCup,0,-10]) // below main gfx so can see > > > difference() > > > { > > > square(splsocht, center = true); > > > circle(d=bb); > > > square([.32*splsocht, 1.1*splsocht],center=true); > > > } > > > }; > > > === > > > With that -10 in the translate I should see it below the main image > > > and could adjust it up into the difference, but no hits, no reported > > > errors, its just not there. > > > > > > Once I can see it as a seperate item, the difference s/b become a > > > union, and the first square removed to get the shape for the 2nd > > > removal in the top difference chain. > > > > > > I've been a day and a half now playing all those monkeys writing > > > shakespear, what am I doing wrong? > > > > > > Thanks all. > > > > > > 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 > > > 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 >
GH
Gene Heskett
Tue, Jun 22, 2021 4:51 PM

On Tuesday 22 June 2021 12:31:39 larry wrote:

On Tue, 2021-06-22 at 12:16 -0400, Gene Heskett wrote:

On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote:

Put a "#" in front of the bearing() call, i.e.,
#bearing();
...to see where it is.

Aha! But it is ignoring the z translation.  Maybe I can get
somewhere now.

Thanks, I didn't know that trick. The cheat page shows it
underscored, and 'merican keyboards can't do that overtype.

Everything in the Cheat Sheet is underscored.
That cheat sheet is one VERY handy thing. Whenever you have some time,
it's worth browsing it.

Right up there with the # is !, %, and *, which are worth a look.

Of particular interest (to me, at least), is the %. It may not seem
very useful at first glance, but it's handy to use for positioning
things like motors, components, screws, etc. that you want to
visualize but not render.

I see. That did not previously register in my ancient wet ram.

Thank you.


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 Tuesday 22 June 2021 12:31:39 larry wrote: > On Tue, 2021-06-22 at 12:16 -0400, Gene Heskett wrote: > > On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote: > > > Put a "#" in front of the bearing() call, i.e., > > > #bearing(); > > > ...to see where it is. > > > > Aha! But it is ignoring the z translation. Maybe I can get > > somewhere now. > > > > Thanks, I didn't know that trick. The cheat page shows it > > underscored, and 'merican keyboards can't do that overtype. > > Everything in the Cheat Sheet is underscored. > That cheat sheet is one VERY handy thing. Whenever you have some time, > it's worth browsing it. > > Right up there with the # is !, %, and *, which are worth a look. > > Of particular interest (to me, at least), is the %. It may not seem > very useful at first glance, but it's handy to use for positioning > things like motors, components, screws, etc. that you want to > visualize but not render. I see. That did not previously register in my ancient wet ram. Thank you. > _______________________________________________ > 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>
RW
Ray West
Tue, Jun 22, 2021 4:56 PM

view-thrown together helps, too.

On 22/06/2021 16:19, Gene Heskett wrote:

Greetings all;

I have composed this script to cap the output side of a harmonic drive:
But the bearing module is totally ignored.  As seperate code elsewhere in
this drive it works great.

// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
/hakespear, what am I doing wrong?

Thanks all.

Cheers, Gene Heskett

view-thrown together helps, too. On 22/06/2021 16:19, Gene Heskett wrote: > Greetings all; > > I have composed this script to cap the output side of a harmonic drive: > But the bearing module is totally ignored. As seperate code elsewhere in > this drive it works great. > === > // new output disk to contain 62 tooth spline > // and incorporate for space savings the output shaft bearings > /hakespear, what am I doing wrong? > > Thanks all. > > Cheers, Gene Heskett
GH
Gene Heskett
Tue, Jun 22, 2021 6:41 PM

On Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote:

Put a "#" in front of the bearing() call, i.e.,

#bearing();

That worked fine, and I've made that difference into a union and added
another item to make a thin break between the two parts, makiing a
bearing channel in the middle of that thick rim, but when I take the #
away for a normal render, the break is the cap disappears from the
render, as if the 3rd argument to the union is beiing ignored. How many
items can be combined in one union() {...} statement?

With the #bearing(); I can see the break thru the top disk even at a .1mm
gap, too narrow to render but its not there in the render, so I'm
rendering to see if it is present with the # and a .5mm gap.  And no,
that gap is not there in the render.  The bearing race channal is there
but not the third argument. And it won't work without it.

So I'm bumfuzzled.  This is the new version:

===
// new output disk to contain 62 tooth spline
// and incorporate for space savings the output shaft bearings
// and a timing belt pulley for output coupling.
// turn upside down to print so no supports needed
// will superglue timing pulley in center hole, and make bearing race
// addition later after verifying fit.

IDofspl=67.99;// to fit OD of 60 or 62 tooth spline
splsocht=6.00;// height of cup for spline
ODofCup=IDofspl+splsocht*2;// incorporate bearing in space
echo(11,ODofCup);
bb=4.36;// crosman bb dia plus clearance
//instclr=.4100;
// need some data for rotate_extrude
ctr_ht=splsocht/2;// center bb groove vertically
innr=ODofCup-splsocht/2;// get radius of bb groove
bbofs=splsocht/2;// might be useful
$fn=360;
translate([0,0,splsocht/2])
difference() {
// builds inner|outer walls of splined ring socket
cylinder(h=splsocht,d=ODofCup,center=true);// outer
cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st subtract
#bearing();
};// ends difference from line 20
// now cap it, this works! turn upside down to render
translate([0,0,splsocht+1.5]) // looks good
difference() {
cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in center
cylinder(h=splsocht,d=20,center=true);
};

module bearing() {
rotate_extrude()
translate([ODofCup/2.16,1.0]) // below main gfx so can see
union()
{
circle(d=bb);
square([.40splsocht, 1.35splsocht],center=true);
square([.5,14],center=true);

}

};

The preview looks great, but the render does not show the last square
statements effect. And a test print doesn't show it either, so I stopped
it.

Thanks for some insight.

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 Tuesday 22 June 2021 11:32:05 Leonard Martin Struttmann wrote: > Put a "#" in front of the bearing() call, i.e., > > #bearing(); That worked fine, and I've made that difference into a union and added another item to make a thin break between the two parts, makiing a bearing channel in the middle of that thick rim, but when I take the # away for a normal render, the break is the cap disappears from the render, as if the 3rd argument to the union is beiing ignored. How many items can be combined in one union() {...} statement? With the #bearing(); I can see the break thru the top disk even at a .1mm gap, too narrow to render but its not there in the render, so I'm rendering to see if it is present with the # and a .5mm gap. And no, that gap is not there in the render. The bearing race channal is there but not the third argument. And it won't work without it. So I'm bumfuzzled. This is the new version: === // new output disk to contain 62 tooth spline // and incorporate for space savings the output shaft bearings // and a timing belt pulley for output coupling. // turn upside down to print so no supports needed // will superglue timing pulley in center hole, and make bearing race // addition later after verifying fit. IDofspl=67.99;// to fit OD of 60 or 62 tooth spline splsocht=6.00;// height of cup for spline ODofCup=IDofspl+splsocht*2;// incorporate bearing in space echo(11,ODofCup); bb=4.36;// crosman bb dia plus clearance //instclr=.4100; // need some data for rotate_extrude ctr_ht=splsocht/2;// center bb groove vertically innr=ODofCup-splsocht/2;// get radius of bb groove bbofs=splsocht/2;// might be useful $fn=360; translate([0,0,splsocht/2]) difference() { // builds inner|outer walls of splined ring socket cylinder(h=splsocht,d=ODofCup,center=true);// outer cylinder(h=splsocht+1,d=IDofspl,center=true);//inner,1st subtract #bearing(); };// ends difference from line 20 // now cap it, this works! turn upside down to render translate([0,0,splsocht+1.5]) // looks good difference() { cylinder(h=splsocht/2,d=ODofCup,center=true);// make hole in center cylinder(h=splsocht,d=20,center=true); }; module bearing() { rotate_extrude() translate([ODofCup/2.16,1.0]) // below main gfx so can see union() { circle(d=bb); square([.40*splsocht, 1.35*splsocht],center=true); square([.5,14],center=true); } }; === The preview looks great, but the render does not show the last square statements effect. And a test print doesn't show it either, so I stopped it. Thanks for some insight. 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>