Skip to content

Instantly share code, notes, and snippets.

View ggs67's full-sized avatar

Gaston Gloesener ggs67

View GitHub Profile
@ggs67
ggs67 / roundedcube.scad
Last active September 12, 2021 22:24 — forked from groovenectar/roundedcube.scad
roundedcube.scad - Fork me and make me better!
// More information on original version: https://danielupshaw.com/openscad-rounded-corners/
//
// Changed by GGS67 to remove some limitations:
//
// 1. Allow radius>length for rounded corners in one axis only (problem reported on original page in 2015)
// 2. Remove limitation where for apply_to=(x|y|z)max or (x|y|z)min the dimension of the corresponding perpendicular
// axis had to be at least 3 times the radius because of fixed cylinder height. Now cylinder height is always computed not
// to interferr with opposite corner