[OpenSCAD] Monitor Mount

adrianv avm4 at cornell.edu
Mon Nov 25 17:18:41 EST 2019


It seems like the main unavoidable limitation of your approach is that the
polygon has to be convex (and the resulting shape has to be constructable
from convex slices).  It's certainly a heck of a lot simpler than what I
did.  


thehans wrote
> Didn't see adrianv's reply til now, but I just created a simple module to
> perform fillet on bottom and/or top as a sort of variation on
> linear_extrude, called fillet_extrude.
> 
> https://gist.github.com/thehans/b47ab7077c862361eb5d8f095448b2d4
> 
> Its not as efficient or flexible as the BOSL example appears to be, since
> my version does not work directly with point data.
> But still should render under a minute, with fairly compact,
> self-contained
> code.
> 
> Hans
> 
> On Sat, Nov 23, 2019 at 8:12 PM adrianv <

> avm4@

> > wrote:
> 
>> I wrote a module specifically to handle this sort of problem.  My module,
>> offset_sweep, constructs a polygon from a set of polygons offset from a
>> given polygon.  You have to supply the starting shape as a point sequence
>> rather than geometry.   I contributed by function to the BOSL2 library.
>>
>> Here's the code:
>>
>> include<BOSL2/std.scad>
>> include<BOSL2/rounding.scad>
>>
>> fillet_radius = 10;
>> mount_width = 15;
>> mount_length = 75;
>>
>> rectangle = square([mount_width, mount_length],center=true);
>> round_rectangle = round_corners(rectangle, measure="radius",
>> size=mount_width/2,$fn=64);
>> cuboid([200,100,10],anchor=TOP);
>> offset_sweep(round_rectangle, height=50,
>> bottom=os_circle(r=-fillet_radius));
>>
>>
>> And here's the result, which previews in 1s and renders in 3s on my
>> machine.
>>
>> <http://forum.openscad.org/file/t2477/round_thing.png>
>>
>>
>>
>> --
>> Sent from: http://forum.openscad.org/
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> 

> Discuss at .openscad

>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>
> 
> _______________________________________________
> OpenSCAD mailing list

> Discuss at .openscad

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





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



More information about the Discuss mailing list