[OpenSCAD] Monitor Mount

Alex Gibson alex at alexgibson.net
Fri Nov 22 10:00:53 EST 2019


An even cleaner way to code that is below - has the same result but you can
stick any shape you like into 'original_shape' module, and it will get the
same treatment.



fillet_radius = 10;

mount_width = 15;

 

module original_shape()

                {

                union()

                                {

                                //plate

                                translate([0,0,-5])

 
cube([200,100,10],center=true);

                                

                                //mount

                                translate([0,0,25])

 
cube([mount_width,75,50],center=true);

                                }

                }

 

module shape_inflated()

                {

                minkowski()

                                {

                                original_shape();

 
cube([fillet_radius*2,fillet_radius*2,fillet_radius*2]);

                                }

                }

 

difference()

                {

                shape_inflated();

                minkowski()

                                {

                                difference()

                                                {

 
cube([500,500,500],center=true);

                                                shape_inflated();

                                                }

                                sphere(fillet_radius);

                                }

                }

 

 

 

Alex Gibson

 

admg consulting

 

edumaker limited

 

.         Project management

.         Operations & Process improvement 

.         3D Printing

 

From: Discuss [mailto:discuss-bounces at lists.openscad.org] On Behalf Of Alex
Gibson
Sent: 22 November 2019 14:49
To: 'OpenSCAD general discussion'
Subject: Re: [OpenSCAD] Monitor Mount

 

Here's an example of that.  It's better, as it gives both fillets, if you
want them the same radius:

 



 

fillet_radius = 10;

mount_width = 15;

 

 

module shape_inflated()

                {

                union()

                                {

                                //plate

                                translate([0,0,-5])

 
cube([200+fillet_radius*2,100+fillet_radius*2,10+fillet_radius*2],center=tru
e);

                                

                                //mount

                                translate([0,0,25])

 
cube([mount_width+fillet_radius*2,75+fillet_radius*2,50+fillet_radius*2],cen
ter=true);

                                }

                }

 

difference()

                {

                shape_inflated();

                minkowski()

                                {

                                difference()

                                                {

 
cube([500,500,500],center=true);

                                                shape_inflated();

                                                }

                                sphere(fillet_radius);

                                }

                }

 

Alex Gibson

 

admg consulting

 

edumaker limited

 

. Project management

. Operations & Process improvement 

. 3D Printing

 

 

-----Original Message-----
From: Discuss [mailto:discuss-bounces at lists.openscad.org] On Behalf Of
arnholm at arnholm.org
Sent: 22 November 2019 14:04
To: OpenSCAD general discussion
Subject: Re: [OpenSCAD] Monitor Mount

 

On 2019-11-22 13:36, ats3788 wrote:

> How an we do The Soft connection to the plate in OpenSCad

> <http://forum.openscad.org/file/t2425/Monitor_Mount.jpg>

 

Determine the fillet radius r and add 2*r thickness in all directions to 

the parts mentioned below.

 

Union two "plates" defined as cubes. One for the "horizontal plate" and 

one for the "vertical". No holes or cutouts at this stage, but add 2*r 

to all directions so we can "machine" away a thickness of r on all sides 

later and obtain the correct dimensions.

 

Create a cube enclosing the unioned parts 100% and subtract the unioned 

parts from it. You now have a cube with an internal void shaped by your 

object. Run minkowski() on that using a sphere with the required fillet 

radius. Subtract the result of minkowski() from your original union. Now 

you have two parts with a fillet with given radius between them.

 

Punch the holes as required.

 

Carsten Arnholm

 

_______________________________________________

OpenSCAD mailing list

Discuss at lists.openscad.org

http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191122/fc956b17/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 8832 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191122/fc956b17/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6902 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191122/fc956b17/attachment-0001.png>


More information about the Discuss mailing list