live kitbash_ribs: wedge and gusset longerons through the legs' ribs, each its section's area along the run
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
2f374cc4de
commit
8513bd35e3
2 changed files with 28 additions and 0 deletions
|
|
@ -106,6 +106,10 @@ CLEARED = 0.0058
|
|||
# 5.2e-07; least claimed mutant 0.0021 (K1, a sweep with no mitre: the rib's mid-depth line stands in from where the
|
||||
# facets' offsets meet); separation 64 each side. K9 (the station at the chain's first point) reads 1.2.
|
||||
STATIONED = 3.3e-5
|
||||
# A wedge's or a gusset's longerons' volume less a T's, over the difference of the two sections' areas along both runs,
|
||||
# less 1. Shipped 1.1e-06; least claimed mutant 0.235, computed, not run (a wedge built as a gusset; the section ignored
|
||||
# and a T built reads 1); separation 460 each side.
|
||||
SECTIONED = 5.1e-4
|
||||
# What lightening holes removed from five crossing ribs, over the holes' faceted area times the thickness, less 1.
|
||||
# Shipped 2.7e-08; least claimed mutant 22 (K11, each plane's Manifold Boolean taken over all five ribs' webs, which
|
||||
# cross, with the action's own check of the cut off); separation 28000 each side.
|
||||
|
|
@ -504,6 +508,19 @@ try:
|
|||
receipt["status"] == "accepted" and [s["chains"] for s in report["sections"]] == [2, 2, 2] and report["ribs"] == 6 and [(r["index"], len(r["stations"])) for r in report["longerons"]] == [(0, 3), (1, 3)]
|
||||
and R["readings"].get("stationed", 1.0) < STATIONED and (shape["shells"], shape["nonManifoldEdges"]) == (8, 0)
|
||||
and abs(float(points(ribs)[:, 2].max()) - (0.8 + 0.3 * 0.12)) < 1e-6 and abs(float(points(ribs)[:, 2].min()) - (0.2 - 0.3 * 0.12)) < 1e-6, [receipt["message"], report, R["readings"]])
|
||||
# the longeron enum's other sections: a wedge and a gusset through the same ribs. A straight longeron's shells are its
|
||||
# section's area times its length, so against the T's ribs each differs by the two sections' areas over two legs.
|
||||
t_volume, run = (shape or {}).get("volume", 0.0), LEVELS[-1] - LEVELS[0] + 2 * 0.3 * 0.12
|
||||
area = lambda kind: (lambda x, y: float(0.5 * np.sum(x * np.roll(y, -1) - np.roll(x, -1) * y)))(*core.profile(kind, 0.05, 0.05, 0.008).T) # noqa: E731
|
||||
for kind in ("wedge", "gusset"):
|
||||
receipt, report = send("brokkr_kitbash.ribs", object_name="Legs", ribs_name=f"LegRibs_{kind}", planes=flat(LEVELS), **SIZES, longerons=json.dumps(BEAMS),
|
||||
longeron=kind, longeron_w=0.05, longeron_h=0.05, longeron_t=0.008)
|
||||
made = bpy.data.objects.get(f"LegRibs_{kind}")
|
||||
shape = measure(made.data) if made is not None else {}
|
||||
check(f"a {kind} longeron through each leg's ribs: the stations a T's has, closed shells, and the {kind}'s area along the run",
|
||||
receipt["status"] == "accepted" and [(r["index"], len(r["stations"])) for r in report["longerons"]] == [(0, 3), (1, 3)]
|
||||
and (shape["shells"], shape["nonManifoldEdges"]) == (8, 0)
|
||||
and reading("sectioned", abs((shape["volume"] - t_volume) / (2 * run * (area(kind) - area("T"))) - 1.0)) < SECTIONED, [receipt["message"], report, R["readings"]])
|
||||
LEG = {"object_name": "Legs", "ribs_name": "Bad", "planes": flat(LEVELS), **SIZES}
|
||||
refused("a longeron whose half-plane meets no rib", {**LEG, "longerons": json.dumps([{"origin": [0.0, 0.0, 0.0], "axis": [0.0, 0.0, 1.0], "toward": [0.0, 1.0, 0.0]}])},
|
||||
"longerons[0] does not meet the ribs of planes[0]")
|
||||
|
|
|
|||
|
|
@ -121,6 +121,16 @@
|
|||
"ok": true,
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "a wedge longeron through each leg's ribs: the stations a T's has, closed shells, and the wedge's area along the run",
|
||||
"ok": true,
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "a gusset longeron through each leg's ribs: the stations a T's has, closed shells, and the gusset's area along the run",
|
||||
"ok": true,
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"name": "refused, scene unchanged: a longeron whose half-plane meets no rib",
|
||||
"ok": true,
|
||||
|
|
@ -256,6 +266,7 @@
|
|||
"planar": 1.4e-07,
|
||||
"ring": 2.1e-06,
|
||||
"round": 9.7e-08,
|
||||
"sectioned": 1.1e-06,
|
||||
"stationed": 5.2e-07,
|
||||
"stood": 6.4e-08,
|
||||
"sunk": 0.0047,
|
||||
|
|
|
|||
Loading…
Reference in a new issue