PinePhoneBoy/src/common.scad

14 lines
278 B
OpenSCAD
Raw Normal View History

2021-01-20 14:55:17 +00:00
use <BOSL/shapes.scad>
include <BOSL/constants.scad>
module cubi(s, fillet=0, edges=EDGES_ALL) {
if ($preview) {
cube(s, center=true);
} else {
cuboid(s, fillet=fillet, edges=edges);
}
}
2021-01-21 08:59:55 +00:00
function vec_sum(v, w) = [v.x + w.x, v.y + w.y, v.z + w.z];