2025-05-01 11:36:51 -05:00
|
|
|
fn cube(pos, scale) {
|
2025-03-27 18:48:55 -04:00
|
|
|
return startSketchOn(XY)
|
2025-05-01 11:36:51 -05:00
|
|
|
|> startProfile(at = [pos[0] - scale, pos[1] - scale])
|
|
|
|
|> line(endAbsolute = [pos[0] + scale, pos[1] - scale])
|
|
|
|
|> line(endAbsolute = [pos[0] + scale, pos[1] + scale])
|
|
|
|
|> line(endAbsolute = [pos[0] - scale, pos[1] + scale])
|
2025-03-27 18:48:55 -04:00
|
|
|
|> close()
|
2025-05-01 11:36:51 -05:00
|
|
|
|> extrude(length = 2 * scale)
|
2025-03-27 18:48:55 -04:00
|
|
|
}
|
|
|
|
|
2025-05-01 11:36:51 -05:00
|
|
|
part001 = cube(pos = [0, 0], scale = 10)
|
|
|
|
part002 = cube(pos = [7, 3], scale = 5)
|
2025-04-10 18:30:57 -07:00
|
|
|
|> translate(z = 1)
|
2025-03-27 18:48:55 -04:00
|
|
|
|
|
|
|
fullPart = union([part001, part002])
|