An OpenSCAD module to render a 2D polygon outline including rounded vertices/corners.
It takes a list of vertices as [X,Y] points (vec2), a boolean value for whether to fill the polygon, and a float of the thickness of the outline. The points lie in the centre of the circles which form the outline's vertices.
It supports both filled and unfilled polygons.
Points = [ [0,0], [0,1], ...];
OutlinePolygon(lineThickness=4, fill=false, points=Points, $fn=24);