Cord/examples/test-decomp/bolt_simple.crd

11 lines
295 B
Plaintext

// t=7 (objects: 3, operations: 2, transforms: 2)
// Hex bolt head + cylindrical shaft
let head: Obj = cylinder(1.5, 0.8)
let shaft: Obj = translate(cylinder(0.6, 4), 0, 0, -2.4)
let body: Obj = union(head, shaft)
let slot: Obj = box(0.2, 1.8, 2)
let scene: Obj = diff(body, slot)
cast(scene)