OpenSCAD Wedge Module/Library

This is a simple and performant library for drawing wedges with no artifacts (e.g. no clipping/mask rectangles or similar) as well as wedges greater than 180 degrees. It does this using polygon() and some hacky-but-elegant flattening and re-creating of the points array. The module accepts 4 arguments: The radius of which to draw the wedge, the starting and ending angles in degrees, and an optional parameter indicating how many fragments the wedge should have. The final parameter defaults to the number of degrees in the arc but can be overridden with $fn or whatever you like. This module concerns itself with the 2 dimensional aspect of the wedge; using linear_extrude() handles the 3rd dimension.”