Tapered extrusion but with angles per edge


(David Rutten) #1

Made a simple script for a tech-support call, thought maybe it’s useful for others too.
The attached file contains a C# script which creates a specific extrusion brep from a closed, planar polyline. You get to specify the straight extrusion height (could be zero), the tapered extrusion height (must be larger than zero) and, per edge, a taper angle.

This is very simple code which doesn’t handle any kind of self-intersection cases, but it is pretty fast.

angledextrusion.gh (15.7 KB)


(Laurent Delrieu) #2

Cool
A bit similar to that, I put also different angles for roofs and it is possible to have concave part on polyline.



#3

Thanks David !

This can be useful also as a plain Rhino command/script. :slight_smile: