discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

disappearing code

GH
Gene Heskett
Thu, Dec 9, 2021 2:57 PM

Greetings all;

Forced to use FF & webmail due to a main drive failure and a new bullseye
install I don't yet have a working mail agent on. Sucks dead toads thru soda
straws is what it is. But I'm trying to make a lid for a 50 shell flat from a 38
box which is the right size to hold 50 6.5 Creedmoor shells.

The openscad code:

// a lid for a 50 shell carriar for 6.5 creedmoor shellswid=74.50;    //mm
len=145.80;  //mm
high= 77.60;  //mm
wall=2.5;      //mm
widod=(wid+wall+wall); // one wall on each
lenod=(len+wall+wall); // one of each
hightop=(high+wall);
echo (wid,len,high);
echo (widod,lenod,hightop);
$fn=3;
union()
{
difference()
{
cube([widod,lenod,hightop],true);
translate([0,0,wall-.95]) cube([wid,len,high],true);
};
#translate([0,0,80])cylinder([2,2,20,true]); // latch bumps
};

The last # marked line is not an error, nor is it reproduced in the preview pane.
I intend to place two of them on the inside edge of the top of the box to act as
snap over latches to hold the this box lid in place over a 50 shell insert from a
cartridge box.

But if can't find it, (that's why the 80mm z translate) I can't place it with

rotate/translate's

Where did it go?

Thanks all,

Cheers, Gene

Greetings all; Forced to use FF & webmail due to a main drive failure and a new bullseye install I don't yet have a working mail agent on. Sucks dead toads thru soda straws is what it is. But I'm trying to make a lid for a 50 shell flat from a 38 box which is the right size to hold 50 6.5 Creedmoor shells. The openscad code: // a lid for a 50 shell carriar for 6.5 creedmoor shellswid=74.50; //mm len=145.80; //mm high= 77.60; //mm wall=2.5; //mm widod=(wid+wall+wall); // one wall on each lenod=(len+wall+wall); // one of each hightop=(high+wall); echo (wid,len,high); echo (widod,lenod,hightop); $fn=3; union() { difference() { cube([widod,lenod,hightop],true); translate([0,0,wall-.95]) cube([wid,len,high],true); }; #translate([0,0,80])cylinder([2,2,20,true]); // latch bumps }; The last # marked line is not an error, nor is it reproduced in the preview pane. I intend to place two of them on the inside edge of the top of the box to act as snap over latches to hold the this box lid in place over a 50 shell insert from a cartridge box. But if can't find it, (that's why the 80mm z translate) I can't place it with rotate/translate's Where did it go? Thanks all, Cheers, Gene
LM
Leonard Martin Struttmann
Thu, Dec 9, 2021 3:32 PM

Gene, I see it but it is very small.

Why are you passing a vector to cylinder()?

Should not that be:

cylinder(2,2,20,center=true); // latch bumps

?

On Thu, Dec 9, 2021 at 9:06 AM Gene Heskett gheskett@shentel.net wrote:

Greetings all;

Forced to use FF & webmail due to a main drive failure and a new bullseye
install I don't yet have a working mail agent on. Sucks dead toads thru
soda
straws is what it is. But I'm trying to make a lid for a 50 shell flat
from a 38
box which is the right size to hold 50 6.5 Creedmoor shells.

The openscad code:

// a lid for a 50 shell carriar for 6.5 creedmoor shells
wid=74.50;    //mm
len=145.80;  //mm
high= 77.60;  //mm
wall=2.5;      //mm
widod=(wid+wall+wall); // one wall on each
lenod=(len+wall+wall); // one of each
hightop=(high+wall);
echo (wid,len,high);
echo (widod,lenod,hightop);
$fn=3;
union()
{
difference()
{
cube([widod,lenod,hightop],true);
translate([0,0,wall-.95]) cube([wid,len,high],true);
};
#translate([0,0,80])cylinder([2,2,20,true]); // latch bumps
};

The last # marked line is not an error, nor is it reproduced in the
preview pane.
I intend to place two of them on the inside edge of the top of the box to
act as
snap over latches to hold the this box lid in place over a 50 shell insert
from a
cartridge box.

But if can't find it, (that's why the 80mm z translate) I can't place it
with
rotate/translate's

Where did it go?

Thanks all,

Cheers, Gene


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

Gene, I see it but it is very small. Why are you passing a vector to cylinder()? Should not that be: cylinder(2,2,20,center=true); // latch bumps ? On Thu, Dec 9, 2021 at 9:06 AM Gene Heskett <gheskett@shentel.net> wrote: > Greetings all; > > Forced to use FF & webmail due to a main drive failure and a new bullseye > install I don't yet have a working mail agent on. Sucks dead toads thru > soda > straws is what it is. But I'm trying to make a lid for a 50 shell flat > from a 38 > box which is the right size to hold 50 6.5 Creedmoor shells. > > The openscad code: > > // a lid for a 50 shell carriar for 6.5 creedmoor shells > wid=74.50; //mm > len=145.80; //mm > high= 77.60; //mm > wall=2.5; //mm > widod=(wid+wall+wall); // one wall on each > lenod=(len+wall+wall); // one of each > hightop=(high+wall); > echo (wid,len,high); > echo (widod,lenod,hightop); > $fn=3; > union() > { > difference() > { > cube([widod,lenod,hightop],true); > translate([0,0,wall-.95]) cube([wid,len,high],true); > }; > #translate([0,0,80])cylinder([2,2,20,true]); // latch bumps > }; > > The last # marked line is not an error, nor is it reproduced in the > preview pane. > I intend to place two of them on the inside edge of the top of the box to > act as > snap over latches to hold the this box lid in place over a 50 shell insert > from a > cartridge box. > > But if can't find it, (that's why the 80mm z translate) I can't place it > with > rotate/translate's > > Where did it go? > > Thanks all, > > Cheers, Gene > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >