Cord/examples/test-decomp/bracket.crd

14 lines
425 B
Plaintext

// t=10 (objects: 5, operations: 4, transforms: 3)
// L-shaped bracket with two mounting holes
let base: Obj = box(5, 1, 0.5)
let upright: Obj = translate(box(0.5, 1, 3), -4.5, 0, 3)
let l_shape: Obj = union(base, upright)
let hole1: Obj = translate(cylinder(0.4, 3), 3, 0, 0)
let hole2: Obj = translate(cylinder(0.4, 3), -3, 0, 0)
let drilled: Obj = diff(l_shape, hole1)
let scene: Obj = diff(drilled, hole2)
cast(scene)