Post #1107712
2026-03-08 16:38 UTC
I've just invented a drafted linear extrusion for #OpenSCAD without using roof() or minkowski(), and also not limited to convex 2d geometries as in convex_offset_extrude() from #BOSL2.
I didn't stumble upon this solution anywhere else, so I might be onto something.
I present to you
module drafted_extrude(height,angle,$fn) {
intersection_for(a=[360/$fn:360/$fn:360]) linear_extrude(height=height,v=[cos(a),sin(a),tan(angle)]) children();
}
I need to work on $fn and convexity passthrough, and it may be as inefficient as minkowski(), but it has no limitations on inner radii and how thin walls on 2d geometry can be. Example usage for chamfers is in alt text
Replies (3)
-
@orangutanlibrarian@mastodon.au 2026-03-08 19:28
@kauzerei I don't understand how that works but I am going to play with it. Impressive achievement!
-
@tomnardi@hackaday.social 2026-03-09 05:02
@kauzerei I've been using OpenSCAD for years, and like to think I've pretty much mastered it... Then I see a post like this, and realize I'm barely scratching the surface.
-
@pondskater@social.toplap.org 2026-04-15 06:47
@kauzerei Thank you so much for sharing your gorgeous invention drafted_extrude with us. I think it will be useful in a wide range of projects.