I think image size depends on your email client. In gmail I get size
options.
On Wed, 12 May 2021 at 14:41, Terrypin via Discuss <
discuss@lists.openscad.org> wrote:
---------- Forwarded message ----------
From: Terrypin T.pinnell@btinternet.com
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Wed, 12 May 2021 06:03:20 -0700 (MST)
Subject: [OpenSCAD] Re: Merging sub-assemblies?
Here's my version based on hull with cylinders. I also used the exercise
to learn how to work with modules, so that I can make more of these in
future.
// 'Dry box' for dual mains sockets
// Used 'hull with cylinders' method
// Dimensions: length = x = 143, width = y = 83, height = z = 25, roundness = r = 6, thickness = t = 3 to match existin top
$fn = 48; // Have been using 50 but recently read somewhere that multiples of 4 are recommended?
module round_edges_box(x,y,z,r) {
hull() {
translate([r,r,0])
cylinder(h=z,r=r);
translate([x-r,r,0])
cylinder(h=z,r=r);
translate([x-r,y-r,0])
cylinder(h=z,r=r);
translate([r,y-r,0])
cylinder(h=z,r=r);
} // End of hull
} // End of module round_edges_box
// Different name for 'fully parametrised' version
module rounded_edges_box(x,y,z,r,t) {
// Hollow the solid by subtracting the smaller (and translated) version below
difference(){
round_edges_box(x,y,z,r);
translate([t,t,t]) // Moves smaller box out from origin
round_edges_box(x-(2t),y-(2t),(z+10),r);
}
}
rounded_edges_box(143,83,25,6,3);
The top for the box is shown here:
https://www.dropbox.com/s/m90ckyv7u5phnwa/DualMainsSockets-1.jpg?raw=1
I estimated the roundness, r, by finding an object that fitted a corner
neatly; this pad had a radius of about 3mm:
https://www.dropbox.com/s/n6zjhnv8d8r0019/RoundnessEstimate.jpg?dl=0httraw=1
P.S. I originally used 'Insert Image' for the two photos but preview
showed them at full size. Hence my reverting to links. How *should *images
be displayed in familiar thumbnail form, or limited to screen size for
reasonable viewing please?
Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.
---------- Forwarded message ----------
From: Terrypin via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: Terrypin T.pinnell@btinternet.com
Bcc:
Date: Wed, 12 May 2021 06:03:20 -0700 (MST)
Subject: [OpenSCAD] Re: Merging sub-assemblies?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Looks good. I normally make the inside radius equal to the outside radius
minus the wall width to keep the wall thickness consistent round the
corners.
On Wed, 12 May 2021 at 14:58, nop head nop.head@gmail.com wrote:
I think image size depends on your email client. In gmail I get size
options.
On Wed, 12 May 2021 at 14:41, Terrypin via Discuss <
discuss@lists.openscad.org> wrote:
---------- Forwarded message ----------
From: Terrypin T.pinnell@btinternet.com
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Wed, 12 May 2021 06:03:20 -0700 (MST)
Subject: [OpenSCAD] Re: Merging sub-assemblies?
Here's my version based on hull with cylinders. I also used the exercise
to learn how to work with modules, so that I can make more of these in
future.
// 'Dry box' for dual mains sockets
// Used 'hull with cylinders' method
// Dimensions: length = x = 143, width = y = 83, height = z = 25, roundness = r = 6, thickness = t = 3 to match existin top
$fn = 48; // Have been using 50 but recently read somewhere that multiples of 4 are recommended?
module round_edges_box(x,y,z,r) {
hull() {
translate([r,r,0])
cylinder(h=z,r=r);
translate([x-r,r,0])
cylinder(h=z,r=r);
translate([x-r,y-r,0])
cylinder(h=z,r=r);
translate([r,y-r,0])
cylinder(h=z,r=r);
} // End of hull
} // End of module round_edges_box
// Different name for 'fully parametrised' version
module rounded_edges_box(x,y,z,r,t) {
// Hollow the solid by subtracting the smaller (and translated) version below
difference(){
round_edges_box(x,y,z,r);
translate([t,t,t]) // Moves smaller box out from origin
round_edges_box(x-(2t),y-(2t),(z+10),r);
}
}
rounded_edges_box(143,83,25,6,3);
The top for the box is shown here:
https://www.dropbox.com/s/m90ckyv7u5phnwa/DualMainsSockets-1.jpg?raw=1
I estimated the roundness, r, by finding an object that fitted a corner
neatly; this pad had a radius of about 3mm:
https://www.dropbox.com/s/n6zjhnv8d8r0019/RoundnessEstimate.jpg?dl=0httraw=1
P.S. I originally used 'Insert Image' for the two photos but preview
showed them at full size. Hence my reverting to links. How *should *images
be displayed in familiar thumbnail form, or limited to screen size for
reasonable viewing please?
Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.
---------- Forwarded message ----------
From: Terrypin via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: Terrypin T.pinnell@btinternet.com
Bcc:
Date: Wed, 12 May 2021 06:03:20 -0700 (MST)
Subject: [OpenSCAD] Re: Merging sub-assemblies?
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I'm viewing and composing exclusively via the web, no email.
--
Sent from: http://forum.openscad.org/