Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/**
* shape_square.scad
*
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-shape_square.html
*
**/
use <__comm__/__trapezium.scad>
function shape_square(size, corner_r = 0) =
let(
is_flt = is_num(size),
x = is_flt ? size : size.x,
y = is_flt ? size : size.y
)
__trapezium(
length = x,
h = y,
round_r = corner_r
);
bb33edfd7This file is pinned to the selected release. Download the original to open it in your design tool.