# simple way to chamfer

5 messages
Open this post in threaded view
|

## simple way to chamfer

 I would like to chamfer the top, outer edge of a random union of contiguous shapes like this: \$fn=100;linear_extrude (height=10);union(){    square([10,5],true);    translate([3,2])    square([5,10]);    translate([-2,-4])    circle(r=2);    } I’d tried using “hull()” but that only works for completely convex unions.  At this point I’m doing the equivalent of “milling” the edge using a succession of thin shapes based on an “offset” of the union.  Since I’m 3D printing the object, the stair-stepped edge is what I would have gotten anyway. Just wondering if there’s a smarter way. Please don’t suggest Minkowski.  It’s just too slow. Thanks,Ken_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: simple way to chamfer

 Won't work now, but I was thinking that it would be REALLY useful for this type of situation if linear_extrude had an offset parameter that you would use the same way you use the scale parameter, but the ends would be affected like they are by the offset module rather than the scale module. It would take a little extra work to handle situations where negative offsets make things go to zero-width or negative width, but it seems like a logical addition that would be useful for a lot of things (draft angles!) and it should be much faster than minkowski. On March 3, 2020 at 09:56:18, [hidden email] ([hidden email]) wrote: I would like to chamfer the top, outer edge of a random union of contiguous shapes like this: \$fn=100;linear_extrude (height=10);union(){    square([10,5],true);    translate([3,2])    square([5,10]);    translate([-2,-4])    circle(r=2);    } I’d tried using “hull()” but that only works for completely convex unions.  At this point I’m doing the equivalent of “milling” the edge using a succession of thin shapes based on an “offset” of the union.  Since I’m 3D printing the object, the stair-stepped edge is what I would have gotten anyway. Just wondering if there’s a smarter way. Please don’t suggest Minkowski.  It’s just too slow. Thanks,Ken_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|