discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

buggy

GH
Gene Heskett
Thu, Apr 1, 2021 5:54 AM

Greetings;

I have downloaded the January AppImage 3 times now, but all three copies
have had the same buglet, and I cannot proceed.

I've attached a screenshot. That is the whole program.  Takes about 14
minutes to render if the for loop is uncommented.  The hour+ comment was
a previous incarnation and is now wrong.

line 24 is supposed to be generating a cylinder, not the smaller
rectangle in the center of the right hand image.  How can I restore it
to draw an end on cylinder so it looks like [( )] in the right view.

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; I have downloaded the January AppImage 3 times now, but all three copies have had the same buglet, and I cannot proceed. I've attached a screenshot. That is the whole program. Takes about 14 minutes to render if the for loop is uncommented. The hour+ comment was a previous incarnation and is now wrong. line 24 is supposed to be generating a cylinder, not the smaller rectangle in the center of the right hand image. How can I restore it to draw an end on cylinder so it looks like [( )] in the right view. 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>
M
MichaelAtOz
Thu, Apr 1, 2021 6:02 AM

$fn=360 is the problem, try 60, then increase it some for your final render prior to export.

-----Original Message-----
From: Gene Heskett [mailto:gheskett@shentel.net]
Sent: Thu, 1 Apr 2021 16:54
To: discuss@lists.openscad.org
Subject: [OpenSCAD] buggy

Greetings;

I have downloaded the January AppImage 3 times now, but all three copies
have had the same buglet, and I cannot proceed.

I've attached a screenshot. That is the whole program.  Takes about 14
minutes to render if the for loop is uncommented.  The hour+ comment was
a previous incarnation and is now wrong.

line 24 is supposed to be generating a cylinder, not the smaller
rectangle in the center of the right hand image.  How can I restore it
to draw an end on cylinder so it looks like [( )] in the right view.

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.

--
This email has been checked for viruses by AVG.
https://www.avg.com

$fn=360 is the problem, try 60, then increase it some for your final render prior to export. > -----Original Message----- > From: Gene Heskett [mailto:gheskett@shentel.net] > Sent: Thu, 1 Apr 2021 16:54 > To: discuss@lists.openscad.org > Subject: [OpenSCAD] buggy > > Greetings; > > I have downloaded the January AppImage 3 times now, but all three copies > have had the same buglet, and I cannot proceed. > > I've attached a screenshot. That is the whole program. Takes about 14 > minutes to render if the for loop is uncommented. The hour+ comment was > a previous incarnation and is now wrong. > > line 24 is supposed to be generating a cylinder, not the smaller > rectangle in the center of the right hand image. How can I restore it > to draw an end on cylinder so it looks like [( )] in the right view. > > 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> -- This email has been checked for viruses by AVG. https://www.avg.com
M
MichaelAtOz
Thu, Apr 1, 2021 6:06 AM

line 24 is supposed to be generating a cylinder,

Please paste the code.

-----Original Message-----
From: Gene Heskett [mailto:gheskett@shentel.net]
Sent: Thu, 1 Apr 2021 16:54
To: discuss@lists.openscad.org
Subject: [OpenSCAD] buggy

Greetings;

I have downloaded the January AppImage 3 times now, but all three copies
have had the same buglet, and I cannot proceed.

I've attached a screenshot. That is the whole program.  Takes about 14
minutes to render if the for loop is uncommented.  The hour+ comment was
a previous incarnation and is now wrong.

line 24 is supposed to be generating a cylinder, not the smaller
rectangle in the center of the right hand image.  How can I restore it
to draw an end on cylinder so it looks like [( )] in the right view.

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.

--
This email has been checked for viruses by AVG.
https://www.avg.com

> line 24 is supposed to be generating a cylinder, Please paste the code. > -----Original Message----- > From: Gene Heskett [mailto:gheskett@shentel.net] > Sent: Thu, 1 Apr 2021 16:54 > To: discuss@lists.openscad.org > Subject: [OpenSCAD] buggy > > Greetings; > > I have downloaded the January AppImage 3 times now, but all three copies > have had the same buglet, and I cannot proceed. > > I've attached a screenshot. That is the whole program. Takes about 14 > minutes to render if the for loop is uncommented. The hour+ comment was > a previous incarnation and is now wrong. > > line 24 is supposed to be generating a cylinder, not the smaller > rectangle in the center of the right hand image. How can I restore it > to draw an end on cylinder so it looks like [( )] in the right view. > > 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> -- This email has been checked for viruses by AVG. https://www.avg.com
GH
Gene Heskett
Thu, Apr 1, 2021 6:22 AM

On Thursday 01 April 2021 02:02:27 MichaelAtOz wrote:

$fn=360 is the problem, try 60, then increase it some for your final
render prior to export.

No effect, even if removed. Given the relative lack of precision in a 3d
printer, even 16 would be a servicable profile.

Thank you Michael.

Greetings;

I have downloaded the January AppImage 3 times now, but all three
copies have had the same buglet, and I cannot proceed.

I've attached a screenshot. That is the whole program.  Takes about
14 minutes to render if the for loop is uncommented.  The hour+
comment was a previous incarnation and is now wrong.

line 24 is supposed to be generating a cylinder, not the smaller
rectangle in the center of the right hand image.  How can I restore
it to draw an end on cylinder so it looks like [( )] in the right
view.

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 Thursday 01 April 2021 02:02:27 MichaelAtOz wrote: > $fn=360 is the problem, try 60, then increase it some for your final > render prior to export. > No effect, even if removed. Given the relative lack of precision in a 3d printer, even 16 would be a servicable profile. Thank you Michael. > > > > Greetings; > > > > I have downloaded the January AppImage 3 times now, but all three > > copies have had the same buglet, and I cannot proceed. > > > > I've attached a screenshot. That is the whole program. Takes about > > 14 minutes to render if the for loop is uncommented. The hour+ > > comment was a previous incarnation and is now wrong. > > > > line 24 is supposed to be generating a cylinder, not the smaller > > rectangle in the center of the right hand image. How can I restore > > it to draw an end on cylinder so it looks like [( )] in the right > > view. 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>
GH
Gene Heskett
Thu, Apr 1, 2021 6:27 AM

On Thursday 01 April 2021 02:06:09 MichaelAtOz wrote:

line 24 is supposed to be generating a cylinder,

Please paste the code.

You are looking at all of it in the screenshot. I'll insert the .scad
file

// my feeble attempt at generating a ball bearing.
// my alu block is 140.9mm square
dmtr=119.50; // in mm's of ID,squeeze it a hair.
height=9.25; // in mm's
// everything below is generated center=true
// which means we're dealing in radius
ctr_ht=(height * .50000); // mults are faster
echo(8, dmtr, ctr_ht);
halfd=(dmtr *.50000); // rad of inner diameter
echo(10, halfd);
innr=(halfd+ctr_ht); // sub to move innr ID to dmtr
echo(12, innr);
outd=(dmtr+height); // figure outter face dia
echo(14, outd);
bb=4.40; // .01mm less than a crosman bb to preload it
$fn=360;
echo(16, bb, $fn);
ang=0.00000; // a cache bug, needs zeroed for another render
//for(ang=[1: 1: 360]) {
//    rotate(ang)
translate([innr,0,0])
difference(){
cube([height,2,height], center=true);
cylinder(h=2,d=bb,center=true, $fn=360);
// generates a cylinder to
// punch bearing hole in square
scale([.25,1,1.1]) cube(height,center=true); // makes a
// rectangle to split the rings to inner and outer
//    }// render sits at 999/1000 for over an hour
};
echo(31, $fn);// checking to see if $fn survived, it does.

-----Original Message-----
From: Gene Heskett [mailto:gheskett@shentel.net]
Sent: Thu, 1 Apr 2021 16:54
To: discuss@lists.openscad.org
Subject: [OpenSCAD] buggy

Greetings;

I have downloaded the January AppImage 3 times now, but all three
copies have had the same buglet, and I cannot proceed.

I've attached a screenshot. That is the whole program.  Takes about
14 minutes to render if the for loop is uncommented.  The hour+
comment was a previous incarnation and is now wrong.

line 24 is supposed to be generating a cylinder, not the smaller
rectangle in the center of the right hand image.  How can I restore
it to draw an end on cylinder so it looks like [( )] in the right
view.

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

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 Thursday 01 April 2021 02:06:09 MichaelAtOz wrote: > > line 24 is supposed to be generating a cylinder, > > Please paste the code. You are looking at all of it in the screenshot. I'll insert the .scad file // my feeble attempt at generating a ball bearing. // my alu block is 140.9mm square dmtr=119.50; // in mm's of ID,squeeze it a hair. height=9.25; // in mm's // everything below is generated center=true // which means we're dealing in radius ctr_ht=(height * .50000); // mults are faster echo(8, dmtr, ctr_ht); halfd=(dmtr *.50000); // rad of inner diameter echo(10, halfd); innr=(halfd+ctr_ht); // sub to move innr ID to dmtr echo(12, innr); outd=(dmtr+height); // figure outter face dia echo(14, outd); bb=4.40; // .01mm less than a crosman bb to preload it $fn=360; echo(16, bb, $fn); ang=0.00000; // a cache bug, needs zeroed for another render //for(ang=[1: 1: 360]) { // rotate(ang) translate([innr,0,0]) difference(){ cube([height,2,height], center=true); cylinder(h=2,d=bb,center=true, $fn=360); // generates a cylinder to // punch bearing hole in square scale([.25,1,1.1]) cube(height,center=true); // makes a // rectangle to split the rings to inner and outer // }// render sits at 999/1000 for over an hour }; echo(31, $fn);// checking to see if $fn survived, it does. > > -----Original Message----- > > From: Gene Heskett [mailto:gheskett@shentel.net] > > Sent: Thu, 1 Apr 2021 16:54 > > To: discuss@lists.openscad.org > > Subject: [OpenSCAD] buggy > > > > Greetings; > > > > I have downloaded the January AppImage 3 times now, but all three > > copies have had the same buglet, and I cannot proceed. > > > > I've attached a screenshot. That is the whole program. Takes about > > 14 minutes to render if the for loop is uncommented. The hour+ > > comment was a previous incarnation and is now wrong. > > > > line 24 is supposed to be generating a cylinder, not the smaller > > rectangle in the center of the right hand image. How can I restore > > it to draw an end on cylinder so it looks like [( )] in the right > > view. > > > > 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> 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>
GH
Gene Heskett
Thu, Apr 1, 2021 6:30 AM

On Thursday 01 April 2021 02:27:00 Gene Heskett wrote:

I am DITW, and its 2:30 AM my time, bedtime I believe.
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.

On Thursday 01 April 2021 02:27:00 Gene Heskett wrote: I am DITW, and its 2:30 AM my time, bedtime I believe. 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>
M
MichaelAtOz
Thu, Apr 1, 2021 6:38 AM

You are looking at all of it in the screenshot.

Difficult to file/open the screenshot ;)

You want to rotate the cylinder:

rotate([90,0,0])

  cylinder(h=2,d=bb,center=true, $fn=360);

To get rid of that z-fighting make the cylinder stick out of the cubes a bit

rotate([90,0,0])

  cylinder(h=2.1,d=bb,center=true, $fn=60);

Note $fn=60, renders fast.

-----Original Message-----

From: Gene Heskett [mailto:gheskett@shentel.net]

Sent: Thu, 1 Apr 2021 17:27

Subject: [OpenSCAD] Re: buggy

On Thursday 01 April 2021 02:06:09 MichaelAtOz wrote:

line 24 is supposed to be generating a cylinder,

Please paste the code.

You are looking at all of it in the screenshot. I'll insert the .scad

file

// my feeble attempt at generating a ball bearing.

// my alu block is 140.9mm square

dmtr=119.50; // in mm's of ID,squeeze it a hair.

height=9.25; // in mm's

// everything below is generated center=true

// which means we're dealing in radius

ctr_ht=(height * .50000); // mults are faster

echo(8, dmtr, ctr_ht);

halfd=(dmtr *.50000); // rad of inner diameter

echo(10, halfd);

innr=(halfd+ctr_ht); // sub to move innr ID to dmtr

echo(12, innr);

outd=(dmtr+height); // figure outter face dia

echo(14, outd);

bb=4.40; // .01mm less than a crosman bb to preload it

$fn=360;

echo(16, bb, $fn);

ang=0.00000; // a cache bug, needs zeroed for another render

//for(ang=[1: 1: 360]) {

//    rotate(ang)

 translate([innr,0,0])
 difference(){
 cube([height,2,height], center=true);
 cylinder(h=2,d=bb,center=true, $fn=360);
 // generates a cylinder to
 // punch bearing hole in square
 scale([.25,1,1.1]) cube(height,center=true); // makes a
 // rectangle to split the rings to inner and outer

//    }// render sits at 999/1000 for over an hour

};

echo(31, $fn);// checking to see if $fn survived, it does.

-----Original Message-----

From: Gene Heskett [mailto:gheskett@shentel.net]

Sent: Thu, 1 Apr 2021 16:54

Subject: [OpenSCAD] buggy

Greetings;

I have downloaded the January AppImage 3 times now, but all three

copies have had the same buglet, and I cannot proceed.

I've attached a screenshot. That is the whole program.  Takes about

14 minutes to render if the for loop is uncommented.  The hour+

comment was a previous incarnation and is now wrong.

line 24 is supposed to be generating a cylinder, not the smaller

rectangle in the center of the right hand image.  How can I restore

it to draw an end on cylinder so it looks like [( )] in the right

view.

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

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

OpenSCAD mailing list

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

--
This email has been checked for viruses by AVG.
https://www.avg.com

> You are looking at all of it in the screenshot. Difficult to file/open the screenshot ;) You want to rotate the cylinder: rotate([90,0,0]) cylinder(h=2,d=bb,center=true, $fn=360); To get rid of that z-fighting make the cylinder stick out of the cubes a bit rotate([90,0,0]) cylinder(h=2.1,d=bb,center=true, $fn=60); Note $fn=60, renders fast. > -----Original Message----- > From: Gene Heskett [mailto:gheskett@shentel.net] > Sent: Thu, 1 Apr 2021 17:27 > To: discuss@lists.openscad.org > Subject: [OpenSCAD] Re: buggy > > On Thursday 01 April 2021 02:06:09 MichaelAtOz wrote: > > > > line 24 is supposed to be generating a cylinder, > > > > Please paste the code. > > You are looking at all of it in the screenshot. I'll insert the .scad > file > > // my feeble attempt at generating a ball bearing. > // my alu block is 140.9mm square > dmtr=119.50; // in mm's of ID,squeeze it a hair. > height=9.25; // in mm's > // everything below is generated center=true > // which means we're dealing in radius > ctr_ht=(height * .50000); // mults are faster > echo(8, dmtr, ctr_ht); > halfd=(dmtr *.50000); // rad of inner diameter > echo(10, halfd); > innr=(halfd+ctr_ht); // sub to move innr ID to dmtr > echo(12, innr); > outd=(dmtr+height); // figure outter face dia > echo(14, outd); > bb=4.40; // .01mm less than a crosman bb to preload it > $fn=360; > echo(16, bb, $fn); > ang=0.00000; // a cache bug, needs zeroed for another render > //for(ang=[1: 1: 360]) { > // rotate(ang) > translate([innr,0,0]) > difference(){ > cube([height,2,height], center=true); > cylinder(h=2,d=bb,center=true, $fn=360); > // generates a cylinder to > // punch bearing hole in square > scale([.25,1,1.1]) cube(height,center=true); // makes a > // rectangle to split the rings to inner and outer > // }// render sits at 999/1000 for over an hour > }; > echo(31, $fn);// checking to see if $fn survived, it does. > > > > -----Original Message----- > > > From: Gene Heskett [mailto:gheskett@shentel.net] > > > Sent: Thu, 1 Apr 2021 16:54 > > > To: discuss@lists.openscad.org > > > Subject: [OpenSCAD] buggy > > > > > > Greetings; > > > > > > I have downloaded the January AppImage 3 times now, but all three > > > copies have had the same buglet, and I cannot proceed. > > > > > > I've attached a screenshot. That is the whole program. Takes about > > > 14 minutes to render if the for loop is uncommented. The hour+ > > > comment was a previous incarnation and is now wrong. > > > > > > line 24 is supposed to be generating a cylinder, not the smaller > > > rectangle in the center of the right hand image. How can I restore > > > it to draw an end on cylinder so it looks like [( )] in the right > > > view. > > > > > > 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> > > > 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 -- This email has been checked for viruses by AVG. https://www.avg.com
MM
Michael Marx
Thu, Apr 1, 2021 6:45 AM

BTW, if you have trouble with a difference()'d item use #

e.g. your cylinder() without the rotate()

#cylinder(h=2.1,d=bb,center=true, $fn=60);

-----Original Message-----

From: Gene Heskett [mailto:gheskett@shentel.net]

Sent: Thu, 1 Apr 2021 17:31

Subject: [OpenSCAD] Re: buggy

On Thursday 01 April 2021 02:27:00 Gene Heskett wrote:

I am DITW, and its 2:30 AM my time, bedtime I believe.

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

OpenSCAD mailing list

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

--
This email has been checked for viruses by AVG.
https://www.avg.com

BTW, if you have trouble with a difference()'d item use # e.g. your cylinder() without the rotate() #cylinder(h=2.1,d=bb,center=true, $fn=60); > -----Original Message----- > From: Gene Heskett [mailto:gheskett@shentel.net] > Sent: Thu, 1 Apr 2021 17:31 > To: discuss@lists.openscad.org > Subject: [OpenSCAD] Re: buggy > > On Thursday 01 April 2021 02:27:00 Gene Heskett wrote: > > I am DITW, and its 2:30 AM my time, bedtime I believe. > 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 -- This email has been checked for viruses by AVG. https://www.avg.com
BC
Bob Carter
Thu, Apr 1, 2021 6:46 AM

Add a rotate to the cylinder kit to get it facing the right way

rotate([90,0,0]) cylinder(h=2,d=bb,center=true, $fn=60);

A better way would be to generate the same object as a 2D flat cross section (use square and circle then use rotate_extrude to generate the bearing holder

Cheers Bob

On 1 Apr 2021, at 07:27, Gene Heskett gheskett@shentel.net wrote:

outd=(dmtr+height); // figure ou

Add a rotate to the cylinder kit to get it facing the right way rotate([90,0,0]) cylinder(h=2,d=bb,center=true, $fn=60); A better way would be to generate the same object as a 2D flat cross section (use square and circle then use rotate_extrude to generate the bearing holder Cheers Bob > On 1 Apr 2021, at 07:27, Gene Heskett <gheskett@shentel.net> wrote: > > > outd=(dmtr+height); // figure ou
P
Parkinbot
Thu, Apr 1, 2021 8:31 AM

Gene,

the whole approach this ballbearing shells are modelled is wrong, or at
least a bit awkward. It leads to an (implicid) union of a thousand little
objects into a ring making OpenSCAD very slow. There are much better ways to
model such a thing.

A fast rendering version would be the following core code instead of the for
loop which btw. runs fast even with $fn=360.

rotate_extrude()
translate([innr,0,0])
difference()
{
square(height, center = true);
circle(d=bb);
square([.25height, 1.1height], center = true);
}

--
Sent from: http://forum.openscad.org/

Gene, the whole approach this ballbearing shells are modelled is wrong, or at least a bit awkward. It leads to an (implicid) union of a thousand little objects into a ring making OpenSCAD very slow. There are much better ways to model such a thing. A fast rendering version would be the following core code instead of the for loop which btw. runs fast even with $fn=360. rotate_extrude() translate([innr,0,0]) difference() { square(height, center = true); circle(d=bb); square([.25*height, 1.1*height], center = true); } -- Sent from: http://forum.openscad.org/