Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Branch ryanbranch

View GitHub Profile
@groovenectar
groovenectar / roundedcube.scad
Last active Aug 6, 2021
roundedcube.scad - Fork me and make me better!
View roundedcube.scad
// More information: https://danielupshaw.com/openscad-rounded-corners/
// Set to 0.01 for higher definition curves (renders slower)
$fs = 0.15;
module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") {
// If single value, convert to [x, y, z] vector
size = (size[0] == undef) ? [size, size, size] : size;
translate_min = radius;