[OpenSCAD] Monitor Mount

Alex Gibson alex at alexgibson.net
Fri Nov 22 10:25:52 EST 2019


Nice!  I must check out AngelCAD.

 

So this works well for square-edged items.  I wanted to check how well my
example would work for  rounded shapes.  Not so well.

 

In this case the 'mount' is supposed to have rounded ends being the union of
two cylinders.  But the cubes I used to inflate the original piece
overpowered the original shape's radii:

 



 

fillet_radius = 10;

mount_width = 15;

 

module original_shape()

     {

     union()

           {

           //plate

           translate([0,0,-5])

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

           

           //mount

           hull()

                {

                translate([0,75/2-mount_width/2,25])

                     cylinder(50,mount_width/2,mount_width/2,center=true);

                translate([0,-75/2+mount_width/2,25])

                     cylinder(50,mount_width/2,mount_width/2,center=true);

                }

           }

     }

 

module shape_inflated()

     {

     minkowski()

           {

           original_shape();

 
cube([fillet_radius*2,fillet_radius*2,fillet_radius*2],center=true);

           }

     }

 

difference()

     {

     shape_inflated();

     minkowski()

           {

           difference()

                {

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

                shape_inflated();

                }

           sphere(fillet_radius);

           }

     }

 

 

 

So, If the same is run again, but making sure the radii on the original part
are bigger than the fillet radius, you get something closer to the expected
output - but still distorted: 



 

 

 

 

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 15:11
To: OpenSCAD general discussion
Subject: Re: [OpenSCAD] Monitor Mount

 

On 2019-11-22 15:48, Alex Gibson wrote:

> Here's an example of that.  It's better, as it gives both fillets, if

> you want them the same radius:

 

Yes, that's what I meant, as I did this

https://gist.github.com/arnholm/a8254293238b2143c4565fc179104576

 

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/59a07ca4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 18124 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191122/59a07ca4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 15927 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191122/59a07ca4/attachment.jpg>


More information about the Discuss mailing list