From f444bbf163d8cf4f9ad2d425704fcce6c9d372f0 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 2 Dec 2026 17:15:10 +0100 Subject: [PATCH] experiments/mechs: CHIMERA (sheet 28), a first pass on its skeleton; shield, rotary cannon, cockpit, rear cooling, pelvis, chest; two stand-ins named Co-Authored-By: Claude Fable 5.2 --- surfaces/blender/experiments/mechs/chimera.py | 75 +++ .../experiments/mechs/chimera_parts.py | 204 ++++++++ .../blender/experiments/mechs/concepts.json | 473 ++++++++++++++++++ 3 files changed, 752 insertions(+) create mode 100644 surfaces/blender/experiments/mechs/chimera.py create mode 100644 surfaces/blender/experiments/mechs/chimera_parts.py diff --git a/surfaces/blender/experiments/mechs/chimera.py b/surfaces/blender/experiments/mechs/chimera.py new file mode 100644 index 0000000..dc1352c --- /dev/null +++ b/surfaces/blender/experiments/mechs/chimera.py @@ -0,0 +1,75 @@ +"""CHIMERA: the operator's concept sheet 28 (images/28.webp), a 13.8 m asymmetric fire-support mech, first pass: +laid on its skeleton and dressed with chimera_parts.py. Joints as the sheet draws them: canted side-bearing hips, +disc-capped knees, drum shoulders. What is a stand-in is named so in chimera_parts.py. MECH_STAGE=1: bare skeleton. +The kit's ranges do not reach this mech (torso frame 4 m, bearing 0.6 m long): the waist ring is at its longest and +the shoulders are marked at the bearings, inside the pauldrons.""" +import math, os, sys, time +from pathlib import Path +sys.path.insert(0, str(Path(__file__).resolve().parent)) +import mechlib as M +import skeleton +import chimera_parts as CP +from mathutils import Matrix, Vector +import bpy + +t0 = time.time() +M.setup() +F, T = M.frame_at, Matrix.Translation +STAGE = int(os.environ.get("MECH_STAGE", "3")) +SK = skeleton.solve("chimera") +CROSS = 0.4 +CFG = dict(pelvis=dict(ring_r=0.8, top_r=0.9, depth=1.8), hip_h=0.4, links=[(0, 1.0, 1.0), (0, 0.9, 0.9)], pin_r=0.2, bore=0.15, foot=(1.0, 1.4, 0.8), foot_part="trident", + knee="none", ankle="cross", ankle_drive="none", cross_drop=CROSS, waist_h=0.6, twist=0, + chassis=dict(width=4.0, depth=2.2, top_r=0.4, side_r=0.9), arms="drum", + arm=dict(pin_r=0.2, width=0.9, depth=0.9, fore={"L": 1.8, "R": 1.2}, face_r=0.5), + aims={"L": (None, None, (-0.15, 0.35, -1)), "R": (None, None, (-0.2, 1, -0.5))}, guns={}) +M.lay(SK, CFG, hull_top=11.7, depth={"L": (0.7, 0.2), "R": (0.4, -0.3)}, elbow_y={"L": 0.4, "R": 1.6}, splay=0.0, cant=skeleton.cant(SK)) +CFG["foot"] = (CFG["foot"][0], CFG["foot"][1], CFG["foot"][2] - CROSS) +CFG["pelvis"]["height"] = min(CFG["pelvis"]["height"], 2.0) # the kit's hip block is 2 m at its tallest; the skeleton asks 2.45, so the waist sits 0.22 m low +body = M.biped(CFG) +pel, legs, core, arms = body["pelvis"], body["legs"], body["core"], body["arms"] +MIR = Matrix.Diagonal((-1.0, 1.0, 1.0, 1.0)) + + +def put(name, fn, host, to_host, lines=None, **kw): + before, t = set(bpy.data.objects.keys()), time.time() + build = M.Build(name, host, to_host) + fn(build, **kw) + build.done() + M.rest(before) + for own, line in (lines or {}).items(): + M.flow(line, host, to_host, build.lines[own]) + print("PUT", name, round(time.time() - t, 1), flush=True) + return build + + +if STAGE > 1: + CH = CFG["chassis"]["height"] + put("Chest", CP.chest, core, None, lines={"crease": "chest"}, height=CH) + put("Cockpit", CP.cockpit, core, T((0, 0.7, CH))) + put("RearCooling", CP.rear_cooling, core, None) + to_core = core.matrix_world.inverted() + put("Shield", CP.shield, core, T(to_core @ arms["L"]["upper"].matrix_world.translation), lines={"edge": "shield_edge"}) + put("ArmPlateL", CP.leg_plate, arms["L"]["upper"], M.seat(arms["L"]["upper"], outboard=-1, side=-1), lines={"outer": "arm_l"}, length=CFG["arm"]["upper"], width=(1.3, 1.2), depth=0.7) + put("ForePlateL", CP.leg_plate, arms["L"]["fore"], M.seat(arms["L"]["fore"], outboard=-1, side=-1), lines={"outer": "arm_l"}, length=CFG["arm"]["fore"]["L"], width=(1.2, 1.0), depth=0.7) + put("Cannon", CP.rotary_cannon, arms["R"]["fore"], M.seat_along(arms["R"]["fore"]), lines={"bore": "cannon"}) + put("PelvisDress", CP.pelvis, pel, None, lines={"cod": "chest"}, span=CFG["pelvis"]["span"], drum=CFG["hip_h"] + 0.1) + (L1, _, _), (L2, _, _) = CFG["links"] + for side, leg in legs.items(): + sx = -1 if side == "L" else 1 + thigh, shin = leg["links"] + line = {"outer": "leg_l_outer" if side == "L" else "leg_r_outer"} + put(f"Thigh{side}", CP.leg_plate, thigh, M.seat(thigh, outboard=-1, side=sx), lines=line, length=L1, width=(1.7, 1.5), depth=0.95) + put(f"Shin{side}", CP.leg_plate, shin, M.seat(shin, outboard=-1, side=sx), lines=line, length=L2, width=(1.5, 1.3), depth=0.9) + put(f"Foot{side}", CP.foot, leg["foot"], M.seat(leg["foot"], (0, 0, -CROSS), outboard=-1, side=sx), lines=line, drop=SK["joints"]["ankle"][1]) + +M.wake() +lo, _ = M.bounds() +pel.location.z -= lo.z +M.update() +M.reskin({"frame": "gunmetal", "machine": "gunmetal", "structure": "gunmetal"}) +lo, hi = M.bounds() +print("HEIGHT", round(hi.z - lo.z, 2), "WIDTH", round(hi.x - lo.x, 2), "DEPTH", round(hi.y - lo.y, 2)) +M.report_skeleton("chimera", body) +M.field_views("chimera", t0, hero=(22.0, 3.0), rear=(180.0, 2.0), samples=64, hero_size=(1600, 1600), joints=M.joint_points(body), + hero_cam=dict(lens=30.0, eye=2.5, margin=0.8), rear_cam=dict(lens=70.0, eye=4.0, margin=0.8)) diff --git a/surfaces/blender/experiments/mechs/chimera_parts.py b/surfaces/blender/experiments/mechs/chimera_parts.py new file mode 100644 index 0000000..19c8d42 --- /dev/null +++ b/surfaces/blender/experiments/mechs/chimera_parts.py @@ -0,0 +1,204 @@ +"""CHIMERA's components (concept sheet 28, images/28.webp), a first pass: one function per component, built to its +inset for detail and to the front, rear, side and hero views for orientation and exposure. Conventions as +kestrel_parts.py: metres at the sheet's 13.8 m, x to the mech's right, y forward, z up; the mech is asymmetric, so +the shield is its LEFT shoulder (outboard -x) and the rotary cannon its RIGHT forearm. Armour is brokkr_kitbash.shell +sheets cut by cut_many on ribs; blocks are M.mass. leg_plate and foot are not built to an inset (the sheet has none): +they are stand-ins from the hero view and are named so in the catalog.""" +import math +from mathutils import Matrix, Vector +import mechlib as M +from kestrel_parts import F, T, RX, RY, RZ, ALONG_Y, OUT, P, D, both, slab, box, cyl, ribbed_drum + + +def amber(): + if "amber" not in M.MATS: + M.material("amber", (0.02, 0.01, 0.0), 0.0, 0.3, emission=((1.0, 0.45, 0.06), 3.0)) + return "amber" + + +def chest(b, width=4.0, height=3.6, prow=1.95): + """The chest of the hero and front views (no inset). Origin at the foot of the torso frame. One mirrored + breastplate: a centre facet and a flank a side, creased between them and across the breast line, `prow` proud at + the breast; its creases run down and inward to the cod plate (the figure's chest lines). Panel breaks, bolts, ribs.""" + k, h = width / 4.0, height / 3.6 + rows = ((3.6, 1.5, 1.0, 1.9, 1.0), (2.6, prow, 1.1, 2.05, 1.1), (1.4, prow - 0.15, 0.9, 1.9, 1.0), (0.3, 1.3, 0.5, 1.3, 0.8)) # z, y at the centre, x of the crease, x of the side, y of the side + plate = {"mirror": True, "rings": [[[0, yc, z * h], [xm * k, yc - 0.1, z * h], [xs * k, ys, z * h]] for z, yc, xm, xs, ys in rows][::-1], + "creases": [{"column": 1, "from": 0, "to": 3, "weight": 1.0}, {"ring": 2, "from": 0, "to": 2, "weight": 1.0}, {"ring": 1, "from": 0, "to": 2, "weight": 0.6}]} + name = b.name + ".plate" + M.shell_action(name, M.face_out(plate, (0, 1, 0)), b, P, thickness=0.08, levels=2, bevel=0.02) + M.cuts_action(name, both([slab(name + ".a", (1.5 * k, 6, 2.0 * h), (0, -1, 0), (0, 0, 1), 1.2, gap=0.04, depth=0.03), slab(name + ".b", (0.5 * k, 6, 1.0 * h), (0, -1, 0), (1, 0, 0), 0.6, gap=0.04, depth=0.03), + cyl(name + ".bolt_a", (0.6 * k, 6, 3.0 * h), (0, -1, 0), 0.06, 0.03), cyl(name + ".bolt_b", (1.6 * k, 6, 1.0 * h), (0, -1, 0), 0.06, 0.03)])) + M.ribs_action(name, [{"origin": [0, 0, z * h], "normal": [0, 0, 1]} for z in (3.0, 2.0, 0.9)], standoff=0.05, depth=0.2, thickness=0.05, holes=0.6, posts=0.7, post_r=0.035) + b.lines = {"crease": [(-xm * k, yc - 0.1, z * h) for z, yc, xm, xs, ys in rows]} + + +def cockpit(b, brow=0.8, visor=0.9): + """COCKPIT & SENSOR SUITE (inset 1). Origin at the neck. A low helm, one mirrored sheet of a crown and a cheek a + side, creased along the crown's edge and across the brow, the brow drawn `brow` forward and down; under it a + visor slot `visor` wide cut through the face, amber behind; a collar block; a whip aerial.""" + helm = {"mirror": True, "rings": [[[0, -0.8, 0.95], [0.62, -0.8, 0.85], [0.9, -0.8, 0.15]], [[0, 0.2, 1.15], [0.66, 0.2, 1.0], [0.95, 0.2, 0.2]], + [[0, brow, 0.82], [0.5, brow, 0.74], [0.72, brow - 0.1, 0.25]], [[0, brow + 0.22, 0.3], [0.4, brow + 0.16, 0.28], [0.6, brow, 0.1]]], + "creases": [{"column": 1, "from": 0, "to": 3, "weight": 1.0}, {"ring": 2, "from": 0, "to": 2, "weight": 1.0}]} + name = b.name + ".helm" + M.shell_action(name, M.face_out(helm, (0, 0.3, 1)), b, P, thickness=0.05, levels=2, bevel=0.012) + M.cuts_action(name, [{"name": name + ".visor", "part": "slot", "params": f"width={visor:g}; height=0.14; depth=0.3", "origin": [0, 5, 0.52], "direction": [0, -1, 0], "up": [0, 0, 1], "axis": [0, 1, 0]}, + slab(name + ".crown", (0, 0.0, 5), (0, 0, -1), (1, 0, 0), 0.9)] + both([cyl(name + ".bolt", (0.4, -0.4, 5), (0, 0, -1), 0.03, 0.02)])) + b[amber()].box(T((0, brow - 0.12, 0.52)), (visor, 0.05, 0.1)) + g = b[D] + g.box(T((0, 0.1, 0.25)), (1.5, 1.4, 0.5)) + g.box(T((0, brow, 0.05)), (0.5, 0.3, 0.3)) + g.rod((0.5, -0.6, 0.8), (0.5, -0.7, 3.0), 0.02, 6) + + +def shield(b, size=(3.8, 3.7), dome=0.8, number="03"): + """LEFT SHOULDER (COOLING / AMMO) (inset 3): outboard -x; origin at the shoulder's pivot. The great shield, one + sheet of nine facets: a flat face and eight facets falling `dome` back to the rim, the four corners clipped; + creased round the face and out to the rim; the number stencilled on the face, an emblem inset, bolts at the + face's corners; behind it the ammunition box and, under the plate, its frame of ribs.""" + w, h = size + ys, zs = (-0.5 * w, -0.26 * w, 0.26 * w, 0.5 * w), (-0.42 * h, -0.2 * h, 0.34 * h, 0.58 * h) + rings = [] + for i, z in enumerate(zs): + ring = [] + for j, y in enumerate(ys): + inner_i, inner_j = i in (1, 2), j in (1, 2) + x = -1.75 if inner_i and inner_j else -1.75 + dome + if not inner_i and not inner_j: + y, z2, x = 0.74 * y, zs[1] + 0.74 * (z - zs[1]) if i == 0 else zs[2] + 0.5 * (z - zs[2]), x + 0.25 + else: + z2 = z + ring.append([x, y, z2]) + rings.append(ring) + sheet = {"rings": rings, "creases": [{"ring": 1, "from": 0, "to": 3, "weight": 1.0}, {"ring": 2, "from": 0, "to": 3, "weight": 1.0}, {"column": 1, "from": 0, "to": 3, "weight": 1.0}, + {"column": 2, "from": 0, "to": 3, "weight": 1.0}]} + name = b.name + ".plate" + M.shell_action(name, M.face_out(sheet, (-1, 0, 0)), b, P, thickness=0.08, levels=2, bevel=0.02) + M.cuts_action(name, [cyl(f"{name}.bolt{i}{j}", (-6, 0.8 * ys[j], zs[i] + (0.25 if i == 1 else -0.25)), (1, 0, 0), 0.06, 0.03) for i in (1, 2) for j in (1, 2)] + + [box(name + ".emblem", (-6, 0.3, zs[1] + 0.5), (1, 0, 0), 0.4, 0.4, 0.03), slab(name + ".line", (-6, -0.2, 0.3), (1, 0, 0), (0, 0, 1), 0.5 * h, gap=0.04, depth=0.03)]) + M.ribs_action(name, [{"origin": [0, 0, z], "normal": [0, 0, 1]} for z in (zs[1] + 0.3, zs[2] - 0.3)], standoff=0.05, depth=0.2, thickness=0.05, holes=0.6, posts=0.7, post_r=0.035) + g = b[D] + g.box(T((-0.55, 0, 0.5)), (1.5, 0.7 * w, 0.6 * h)) # the ammunition box + ribbed_drum(g, F((0.6, 0, 0), (-1, 0, 0), (0, 0, 1)), 0.95, 0.9, 5, 0.08) + b.lines = {"edge": [tuple(rings[3][j]) for j in (1, 2, 3)] + [tuple(rings[2][3]), tuple(rings[1][3]), tuple(rings[0][3])]} + if number: + M.update() + M.stencil_text(b.name + ".number", b.host, (Matrix.Identity(4) if b.to_host is None else Matrix(b.to_host)) @ F((-1.76, 0.35, zs[2] - 0.7), (-1, 0, 0), (0, 0, 1)), number, 0.6) + + +def rotary_cannon(b, length=7.0, r=0.42, ports=8, ring=1.5): + """RIGHT WEAPON ASSEMBLY (inset 2), the right forearm. Origin at the elbow's pin, the bore along y. A receiver of + two housings under a bent cover plate; one turned barrel `length` long with bands and a stepped jacket; a muzzle + brake, a block bored through and drilled with `ports` ports round it; behind the elbow the magazine ring of + radius `ring`, and a ribbed feed belt hanging from it to the receiver's underside.""" + g, L = b[D], length + g.box(T((0, 0.6, 0)), (1.3, 2.2, 1.4)) + g.box(T((0, 2.0, -0.05)), (1.0, 1.0, 1.1)) + cover = {"rings": [[[x, y, z] for x, z in ((-0.75, -0.3), (-0.75, 0.6), (-0.5, 0.85), (0.5, 0.85), (0.75, 0.6), (0.75, -0.3))] for y in (-0.6, 0.4, 1.3, 1.9)], + "creases": [{"column": j, "from": 0, "to": 3, "weight": 1.0} for j in (1, 2, 3, 4)]} + cover["rings"][3] = [[0.8 * x, y, z - 0.15] for x, y, z in cover["rings"][3]] + name = b.name + ".cover" + M.shell_action(name, M.face_out(cover, (0, 0, 1)), b, "olive", thickness=0.07, levels=2, bevel=0.015) + M.cuts_action(name, [slab(name + ".break", (0, 0.5, 6), (0, 0, -1), (1, 0, 0), 0.9, gap=0.04, depth=0.03), box(name + ".inset", (0, 1.1, 6), (0, 0, -1), 0.5, 0.4, 0.03, up=(0, 1, 0)), + cyl(name + ".bolt_l", (-6, 0.2, 0.2), (1, 0, 0), 0.05, 0.03), cyl(name + ".bolt_r", (6, 0.2, 0.2), (-1, 0, 0), 0.05, 0.03)]) + M.ribs_action(name, [{"origin": [0, y, 0], "normal": [0, 1, 0]} for y in (0.0, 1.0)], standoff=0.03, depth=0.12, thickness=0.04, holes=0.0, posts=0.5, post_r=0.03) + g.lathe(T((0, 2.4, 0)) @ ALONG_Y, [(0, 0), (1.5 * r, 0), (1.5 * r, 0.06 * L), (1.2 * r, 0.08 * L), (1.2 * r, 0.3 * L), (r, 0.31 * L), (r, 0.62 * L), (1.12 * r, 0.63 * L), (1.12 * r, 0.66 * L), (r, 0.67 * L), (r, 0.8 * L), (0, 0.8 * L)], 40) + for t in (0.14, 0.22, 0.42, 0.52): + g.lathe(T((0, 2.4 + t * L, 0)) @ ALONG_Y, [(1.0 * r, 0), (1.3 * r, 0.004 * L), (1.3 * r, 0.02 * L), (1.0 * r, 0.024 * L)], 40) + brake = M.Geo() + brake.cylinder(T((0, 2.4 + 0.86 * L, 0)) @ ALONG_Y, 1.4 * r, 0.14 * L, 32) + bname = b.name + ".brake" + M.mass(b, bname, brake, D, bevel=0.0) + y0 = 2.4 + 0.86 * L + M.cuts_on(bname, [cyl(bname + ".bore", (0, 30, 0), (0, -1, 0), 0.62 * r, min(1.9, 0.18 * L))] + + [cyl(f"{bname}.port{j}", (6 * math.cos(a), y0 + (0.03 if j % 2 else -0.03) * L, 6 * math.sin(a)), (-math.cos(a), 0, -math.sin(a)), 0.2 * r, 0.5 * r) for j in range(ports) for a in (2 * math.pi * j / ports,)]) + g.lathe(F((-0.3, -1.6, 0.9), (1, 0, 0), (0, 0, 1)), [(0.72 * ring, 0), (ring, 0), (ring, 0.9), (0.72 * ring, 0.9)], 48) # the magazine ring + b["olive"].lathe(F((-0.36, -1.6, 0.9), (1, 0, 0), (0, 0, 1)), [(1.02 * ring, 0.1), (1.08 * ring, 0.1), (1.08 * ring, 0.92), (1.02 * ring, 0.92)], 48) + pts = [Vector((0.9, -1.6 + ring * math.cos(a), 0.9 + ring * 1.05 * math.sin(a))) for a in [math.radians(v) for v in (200, 235, 270, 300, 325)]] + [Vector((0.75, 0.3, -0.75))] + for a_, c_ in zip(pts, pts[1:]): + M.track(g, a_, c_, 0.5, 5, 0.14, (1, 0, 0)) + b.lines = {"bore": [(0, 0, 0.85), (0, 0.5 * L, r), (0, 2.4 + 0.93 * L, 1.4 * r)]} + + +def rear_cooling(b, width=2.6, height=2.8, louvres=14): + """REAR COOLING ASSEMBLY (inset 4). Origin at the foot of the torso frame; it faces -y. A framed box on the back: + a khaki frame of four members, two tall grilles of `louvres` louvres each between three uprights, riser pipes down + the sides, a cap plate creased across its middle.""" + g, k = b[D], b[P] + at = T((0, -1.75, 2.3)) + g.box(at @ T((0, 0.3, 0)), (width, 0.6, height)) + for z in (-0.5, 0.5): + k.prism(at @ T((0, -0.02, z * (height - 0.24))) @ RX(90), M.rect(width + 0.2, 0.26, 0.05), 0.22, 0.04) + for x in (-0.5, 0.5): + k.prism(at @ T((x * (width - 0.1), -0.02, 0)) @ RX(90), M.rect(0.3, height, 0.05), 0.22, 0.04) + g.box(at @ T((0, -0.06, 0)), (0.16, 0.2, height - 0.4)) + for s in (-1, 1): + for j in range(louvres): + g.box(at @ T((s * 0.27 * width, -0.04, (j / (louvres - 1) - 0.5) * (height - 0.7))) @ RX(-28), (0.42 * width, 0.14, 0.03)) + b["machine"].rod(at @ Vector((s * (0.5 * width + 0.24), 0.1, -0.5 * height)), at @ Vector((s * (0.5 * width + 0.24), 0.1, 0.5 * height)), 0.07, 10) + cap = {"mirror": True, "rings": [[[0, -2.05, 3.78], [0.56 * width, -2.05, 3.7]], [[0, -1.6, 3.95], [0.56 * width, -1.6, 3.86]], [[0, -0.9, 3.9], [0.5 * width, -0.9, 3.82]]], + "creases": [{"ring": 1, "from": 0, "to": 1, "weight": 1.0}]} + name = b.name + ".cap" + M.shell_action(name, M.face_out(cap, (0, 0, 1)), b, P, thickness=0.07, levels=2, bevel=0.015) + M.cuts_action(name, both([slab(name + ".a", (0.6, -1.3, 8), (0, 0, -1), (0, 1, 0), 0.6, gap=0.04, depth=0.03)])) + + +def pelvis(b, span=2.64, r=0.95, drum=0.5): + """PELVIS & HIP DETAIL (inset 5). Origin on the hip axis, mid-way. A cod plate, one mirrored sheet creased down + its middle and across its shoulder, to which the chest's creases run; a black hip drum of raised bands a side; + over each drum a hip guard, a small bent plate; a tail plate behind.""" + g = b[D] + for s in (-1, 1): + ribbed_drum(g, F((s * 0.5 * span, 0, 0), (s, 0, 0), (0, 0, 1)), r, drum, 4, 0.08) + guard = {"rings": [[[s * x, y, z] for y, z in ((-0.7, 1.0), (0.5, 1.25), (1.05, 0.5))] for x in (0.5 * span - 0.2, 0.5 * span + drum + 0.5)], + "creases": [{"column": 1, "from": 0, "to": 1, "weight": 1.0}]} + M.shell_action(f"{b.name}.guard{'L' if s < 0 else 'R'}", M.face_out(guard, (0, 0.5, 1)), b, P, thickness=0.08, levels=1, bevel=0.015) + cod = {"mirror": True, "rings": [[[0, 1.25, 1.0], [0.8, 1.05, 0.95]], [[0, 1.5, 0.2], [0.9, 1.25, 0.2]], [[0, 1.35, -0.9], [0.6, 1.15, -0.85]], [[0, 0.95, -1.6], [0.3, 0.85, -1.5]]], + "creases": [{"column": 0, "from": 0, "to": 3, "weight": 1.0}, {"ring": 1, "from": 0, "to": 1, "weight": 0.8}]} + name = b.name + ".cod" + M.shell_action(name, M.face_out(cod, (0, 1, 0)), b, P, thickness=0.08, levels=2, bevel=0.02) + M.cuts_action(name, both([slab(name + ".a", (0.45, 6, -0.3), (0, -1, 0), (1, 0, 0), 0.5, gap=0.04, depth=0.03), cyl(name + ".bolt", (0.5, 6, 0.6), (0, -1, 0), 0.05, 0.03)])) + tail = {"mirror": True, "rings": [[[0, -1.2, 0.9], [0.8, -1.05, 0.9]], [[0, -1.4, 0.0], [0.85, -1.2, 0.0]], [[0, -1.2, -1.1], [0.5, -1.05, -1.05]]], "creases": []} + M.shell_action(b.name + ".tail", M.face_out(tail, (0, -1, 0)), b, P, thickness=0.08, levels=2, bevel=0.02) + g.box(T((0, 0, -0.2)), (span - 0.1, 2.0, 1.8)) + b.lines = {"cod": [(-0.02, 1.5, 0.2), (0, 1.35, -0.9)]} + + +def leg_plate(b, length=2.6, width=(1.5, 1.3), depth=0.8): + """A STAND-IN, not a matched component: the plated mass over a leg link, from the hero view (the sheet has no leg + inset). Origin at the link's upper pivot, hanging `length` along -z; outboard -x. One sheet wrapping the front and + the outer side, creased at the corner, two lames lapped over it, panel breaks and bolts.""" + rows = ((-0.08 * length, 0.0), (-0.5 * length, 0.5), (-0.92 * length, 1.0)) + half = lambda t: 0.5 * (width[0] + (width[1] - width[0]) * t) + plate = {"rings": [[[half(t), 0.2, z], [0.8 * half(t), depth, z], [-half(t), depth, z], [-half(t) - 0.1, -0.5 * depth, z]] for z, t in rows][::-1], + "creases": [{"column": 1, "from": 0, "to": 2, "weight": 0.8}, {"column": 2, "from": 0, "to": 2, "weight": 1.0}, {"ring": 1, "from": 0, "to": 3, "weight": 0.5}]} + name = b.name + ".plate" + M.shell_action(name, M.face_out(plate, (-0.4, 1, 0)), b, P, thickness=0.08, levels=2, bevel=0.02) + M.cuts_action(name, [slab(name + ".a", (0, 6, -0.36 * length), (0, -1, 0), (1, 0, 0), 0.9 * half(0.5), gap=0.04, depth=0.03), slab(name + ".b", (-6, 0.1, -0.5 * length), (1, 0, 0), (0, 0, 1), 0.5 * length, gap=0.04, depth=0.03), + cyl(name + ".bolt_a", (0.2, 6, -0.2 * length), (0, -1, 0), 0.05, 0.03), cyl(name + ".bolt_b", (-0.3, 6, -0.75 * length), (0, -1, 0), 0.05, 0.03)]) + M.ribs_action(name, [{"origin": [0, 0, z * length], "normal": [0, 0, 1]} for z in (-0.3, -0.7)], standoff=0.05, depth=0.15, thickness=0.05, holes=0.0, posts=0.5, post_r=0.03) + M.ringed_disc(b[D], OUT(-half(1) - 0.12, 0, -length), 0.6, 0.2) + b.lines = {"outer": [(-half(t) - 0.1, depth, z) for z, t in rows]} + + +def foot(b, drop=1.03, toes=2, toe=1.5): + """A STAND-IN from the hero view (no inset): origin at the ankle's pin, the sole `drop` below. An ankle block, + `toes` broad toe blocks each cut across into two, a heel block.""" + b[D].box(T((0, 0, -0.45 * drop)), (1.2, 1.0, 0.9 * drop)) + for j in range(toes): + u = j - 0.5 * (toes - 1) + at = T((0.75 * u, 0.4, -drop)) @ RZ(-10 * u) + wedge = M.Geo() + wedge.hull([(-0.34, 0, 0), (0.34, 0, 0), (-0.3, toe, 0), (0.3, toe, 0), (-0.3, 0, 0.75), (0.3, 0, 0.75), (-0.26, 0.9 * toe, 0.3), (0.26, 0.9 * toe, 0.3)], at) + name = f"{b.name}.toe{j}" + M.mass(b, name, wedge, P, bevel=0.02) + M.cuts_on(name, [slab(name + ".joint", at @ Vector((0, 0.55 * toe, 6)), (0, 0, -1), at.to_3x3() @ Vector((1, 0, 0)), 0.8, gap=0.05, depth=0.06)]) + b[P].hull([(x, y, z - drop) for x in (-0.5, 0.5) for y, z in ((-0.3, 0), (-1.0, 0), (-0.3, 0.6), (-0.9, 0.3))]) + b.lines = {"outer": [(-0.75, 0.4 + toe, 0.2 - drop)]} + + +PARTS = {f.__name__: f for f in (cockpit, rotary_cannon, shield, rear_cooling, pelvis, chest, leg_plate, foot)} +VIEWS = {"cockpit": (8, 18, 0.9, 0), "rotary_cannon": (-28, 6, 0.8, -12), "shield": (62, 4, 0.9, 0), "rear_cooling": (172, 8, 0.9, 0), "pelvis": (16, -4, 0.95, 0), "chest": (16, 4, 0.95, 0), + "leg_plate": (30, 0, 1.0, 0), "foot": (30, 12, 0.95, 0)} +GROUND = {"foot": 1.03} +VARIANTS = {"cockpit": dict(brow=1.1, visor=0.6), "rotary_cannon": dict(length=4.5, ports=6, ring=1.1), "shield": dict(size=(2.8, 3.2), dome=0.9, number="11"), "rear_cooling": dict(width=1.8, louvres=8), + "pelvis": dict(span=1.8, drum=0.3), "chest": dict(prow=2.4, width=3.4), "leg_plate": dict(length=1.8, width=(1.0, 1.4)), "foot": dict(toes=3, toe=1.1)} diff --git a/surfaces/blender/experiments/mechs/concepts.json b/surfaces/blender/experiments/mechs/concepts.json index 000364b..5f0ab7c 100644 --- a/surfaces/blender/experiments/mechs/concepts.json +++ b/surfaces/blender/experiments/mechs/concepts.json @@ -1597,5 +1597,478 @@ ] ] } + }, + "chimera": { + "sheet": "28.webp", + "unit": 1024, + "hero": [ + 0, + 0, + 766, + 740 + ], + "rear": [ + 768, + 245, + 1022, + 490 + ], + "joints": {}, + "labels": {}, + "outline": [ + [ + 320, + 73 + ], + [ + 387, + 53 + ], + [ + 460, + 73 + ], + [ + 507, + 47 + ], + [ + 600, + 47 + ], + [ + 673, + 107 + ], + [ + 700, + 220 + ], + [ + 693, + 267 + ], + [ + 740, + 373 + ], + [ + 743, + 460 + ], + [ + 673, + 480 + ], + [ + 620, + 373 + ], + [ + 620, + 413 + ], + [ + 627, + 507 + ], + [ + 600, + 587 + ], + [ + 660, + 660 + ], + [ + 667, + 700 + ], + [ + 473, + 700 + ], + [ + 480, + 640 + ], + [ + 480, + 507 + ], + [ + 493, + 427 + ], + [ + 427, + 413 + ], + [ + 420, + 480 + ], + [ + 400, + 533 + ], + [ + 373, + 667 + ], + [ + 380, + 707 + ], + [ + 200, + 707 + ], + [ + 207, + 667 + ], + [ + 267, + 587 + ], + [ + 287, + 493 + ], + [ + 313, + 400 + ], + [ + 233, + 393 + ], + [ + 80, + 520 + ], + [ + 33, + 513 + ], + [ + 27, + 467 + ], + [ + 180, + 347 + ], + [ + 193, + 267 + ], + [ + 240, + 200 + ], + [ + 307, + 107 + ] + ], + "flow": { + "cannon": [ + [ + 353, + 133 + ], + [ + 267, + 253 + ], + [ + 167, + 373 + ], + [ + 40, + 487 + ] + ], + "shield_edge": [ + [ + 507, + 53 + ], + [ + 600, + 47 + ], + [ + 673, + 107 + ], + [ + 700, + 220 + ], + [ + 667, + 267 + ] + ], + "chest": [ + [ + 427, + 153 + ], + [ + 453, + 240 + ], + [ + 487, + 293 + ], + [ + 507, + 373 + ] + ], + "leg_l_outer": [ + [ + 587, + 333 + ], + [ + 627, + 427 + ], + [ + 600, + 507 + ], + [ + 640, + 600 + ], + [ + 660, + 667 + ] + ], + "leg_r_outer": [ + [ + 347, + 307 + ], + [ + 320, + 427 + ], + [ + 293, + 507 + ], + [ + 267, + 600 + ], + [ + 207, + 673 + ] + ], + "arm_l": [ + [ + 640, + 200 + ], + [ + 633, + 300 + ], + [ + 680, + 400 + ], + [ + 727, + 460 + ] + ] + }, + "skeleton": { + "unit": 1024, + "height_m": 13.8, + "views": { + "rear": { + "box": [ + 768, + 245, + 1022, + 490 + ], + "ground": 483, + "top": 269, + "joints": { + "shoulder_l": [ + 849, + 308 + ], + "shoulder_r": [ + 943, + 308 + ], + "elbow_l": [ + 833, + 369 + ], + "elbow_r": [ + 956, + 369 + ], + "waist": [ + 895, + 369 + ], + "hip_l": [ + 860, + 388 + ], + "hip_r": [ + 929, + 388 + ], + "knee_l": [ + 856, + 427 + ], + "knee_r": [ + 931, + 427 + ], + "ankle_l": [ + 849, + 467 + ], + "ankle_r": [ + 939, + 467 + ] + } + }, + "hero": { + "box": [ + 0, + 0, + 766, + 740 + ], + "ground": 700, + "top": 40, + "joints": { + "shoulder_r": [ + 353, + 133 + ], + "shoulder_l": [ + 620, + 153 + ], + "elbow_r": [ + 267, + 267 + ], + "elbow_l": [ + 640, + 300 + ], + "wrist_r": [ + 220, + 313 + ], + "wrist_l": [ + 687, + 413 + ], + "waist": [ + 467, + 293 + ], + "hip_r": [ + 373, + 360 + ], + "hip_l": [ + 573, + 373 + ], + "knee_r": [ + 360, + 480 + ], + "knee_l": [ + 560, + 487 + ], + "ankle_r": [ + 300, + 640 + ], + "ankle_l": [ + 567, + 640 + ] + } + } + } + }, + "components": { + "unit": 1024, + "crops": { + "cockpit": [ + 2, + 745, + 202, + 990 + ], + "rotary_cannon": [ + 208, + 745, + 408, + 990 + ], + "shield": [ + 413, + 745, + 613, + 990 + ], + "rear_cooling": [ + 618, + 745, + 818, + 990 + ], + "pelvis": [ + 823, + 745, + 1022, + 990 + ], + "chest": [ + 400, + 130, + 560, + 330 + ] + }, + "labels": { + "cockpit": "COCKPIT & SENSOR SUITE", + "rotary_cannon": "RIGHT WEAPON ASSEMBLY", + "shield": "LEFT SHOULDER (COOLING / AMMO)", + "rear_cooling": "REAR COOLING ASSEMBLY", + "pelvis": "PELVIS & HIP DETAIL", + "chest": "chest (hero view)" + } + } } } \ No newline at end of file