Creates a rounded square or rectangle in the first quadrant.
size: Accepts single value, square with both sides this length. It also accepts 2 value array
[x, y], rectangle with dimensions
corner_r: The corner is one-quarter of a circle (quadrant). The
corner_rparameter determines the circle radius.
false(default), 1st (positive) quadrant, one corner at (0,0).
true, square is centered at (0,0).
$fn: Used to control the four quadrants. Check the circle module for more details.
use <rounded_square.scad>; rounded_square(size = 50, corner_r = 5);
use <rounded_square.scad>; rounded_square( size = [50, 25], corner_r = 5, center = true );
use <rounded_square.scad>; $fn = 4; rounded_square( size = [50, 25], corner_r = 5, center = true );