A Parametric Box based on a polygon, with or without roundings made with Openscad
Software: openscad.org
This openscad code is very simple and uses a 2D polygon with linear_extrude and the offset function with interior or exterior outline for radius.
Note for square: e.g. if you want a quare with 40x40 you have to use box_outer_radius=28
The author marked this model as their own original creation.