Engineering
Go to Model
SCAD polygon outline module
9
Downloads
6
Likes
0
Makes
####*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.
#####Example Usage
use
Points = [ [0,0], [0,1], ...];
linear_extrude(5) {
OutlinePolygon(lineThickness=4, fill=false, points=Points, $fn=24);
}
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.
#####Example Usage
use
Points = [ [0,0], [0,1], ...];
linear_extrude(5) {
OutlinePolygon(lineThickness=4, fill=false, points=Points, $fn=24);
}
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!