A 3D model pipeline, pushed by GPT-6-Astra
agent (cont.)
+0:44clock__curr_time, exec_commandclock__curr_time (+2 more)
input
text(await tools.clock__curr_time({})); text(await tools.exec_command({cmd:"cat tools/shots/variant_build.py && cat tools/shots/arm_shoot.py",max_output_tokens:8000})); text(await tools.exec_command({cmd:"sed -n '1,240p' review/vroid-02/build.py && rg -n '^def |COSTUMES|underwear|soldier_f|def knight|def saber|def .*cloak|def .*coat' tools/outfit.py tools/mobs.py && cat .gitignore","max_output_tokens":7500}));result, 4 lines
Script completed Wall time 0.1 seconds Output: {"current_time":"2026-11-15 03:13:55 UTC"}{"chunk_id":"013624","wall_time_seconds":0.00000412,"exit_code":0,"original_token_count":1056,"output":"\"\"\"Build armory characters from the worktree in $LOWMARCH_REPO into a site dir, with an expression baked in.\n\n python3 variant_build.py SITE_COPY forward=0.13 pull=0.5 hair=0.0 NAME [NAME...]\n\nSITE_COPY is a copy of the built armory site (with the patched sheet rows); each NAME's .glb.json is replaced.\n\"\"\"\nimport functools\nimport os\nimport sys\n\nos.environ[\"LOWMARCH_SITE\"] = \"armory\"\nREPO = os.environ[\"LOWMARCH_REPO\"] # the track's worktree\nsys.path[:0] = [os.path.join(REPO, \"review\", \"vroid-02\"), os.path.join(REPO, \"tools\"), os.path.join(REPO, \"art\", \"cast\")]\nimport build # noqa: E402\nimport vroid_portrait as vp # noqa: E402\n\nsite = sys.argv[1]\nkw = dict(a.split(\"=\") for a in sys.argv[2:] if \"=\" in a)\nnames = [a for a in sys.argv[2:] if \"=\" not in a]\nhair = float(kw.pop(\"hair\", 0.0))\nrest = kw.pop(\"rest\", None) # rest=Fcl_ALL_Joy:1,Fcl_MTH_A:0.5 (VRoid expression shapes)\nif rest is not None:\n for n in names:\n build.CAST[n][\"shape\"] = dict(build.CAST[n][\"shape\"], rest={} if rest == \"none\" else\n {k: float(v) for k, v in (kv.split(\":\") for kv in rest.split(\";\"))})\nskin = kw.pop(\"skin\", None) # skin=<tone in cast.SKINS>\nif skin is not None:\n import cast\n for n in names:\n build.CAST[n][\"paint\"] = dict(build.CAST[n].get(\"paint\") or {})\n if cast.SKINS[skin]:\n build.CAST[n][\"paint\"][\"skin\"] = cast.SKINS[skin]\n else:\n build.CAST[n][\"paint\"].pop(\"skin\", None)\nif \"marks\" in kw: # marks=nose_dy,ry,rx/lip_dy,ry,rx/neck\n nose, lip, neck = kw.pop(\"marks\").split(\"/\")\n vp.SHADE_MARKS = dict(nose=tuple(map(float, nose.split(\",\"))), lip=tuple(map(float, lip.split(\",\"))),\n neck=float(neck))\nvp.face_normals = functools.partial(vp.face_normals, **{k: float(v) for k, v in kw.items()})\nvp.NEUTRAL[\"hair_normals\"] = hair\nbuild.OUT = site\nbuild.GEOM = os.path.join(site, \"_geom\")\nos.makedirs(build.GEOM, exist_ok=True)\nimport json\ncam_path = os.path.join(site, \"camera.json\")\ncam = json.load(open(cam_path))\nfor n in names:\n res = build.character((n, None))\n for c in cam[\"characters\"]: # the page reads paint, roles and cameras from camera.json\n if c[\"name\"] == n:\n c.update(info=res[\"info\"], cams=res[\"cams\"])\n print(n, res[\"size\"])\njson.dump(cam, open(cam_path, \"w\"))\n\"\"\"Shoot armory sheets from a patched copy of the built page with headless Chromium (as review/vroid-02/sheets.py).\n\n python3 arm_shoot.py SITE_DIR OUT_DIR NAME [NAME...]\n\"\"\"\nimport base64\nimport os\nimport re\nimport socket\nimport subprocess\nimport sys\nimport time\n\nsite, out, names = sys.argv[1], sys.argv[2], sys.argv[3:]\nos.makedirs(out, exist_ok=True)\ns = socket.socket()\ns.bind((\"127.0.0.1\", 0))\nport = s.getsockname()[1]\ns.close()\nserver = subprocess.Popen([sys.executable, \"-m\", \"http.server\", str(port), \"--bind\", \"127.0.0.1\", \"--directory\", site],\n stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)\ntry:\n time.sleep(0.5)\n for name in names:\n t0 = time.time()\n r = subprocess.run([os.environ.get(\"CHROMIUM\", \"/snap/bin/chromium\"), *os.environ.get(\"CHROMIUM_FLAGS\", \"\").split(),\n \"--headless=new\", \"--use-angle=swiftshader\", \"--enable-unsafe-swiftshader\",\n \"--ignore-gpu-blocklist\", \"--window-size=1280,900\", \"--virtual-time-budget=600000\",\n \"--dump-dom\", f\"http://127.0.0.1:{port}/index.html?sheet={name}&rows={os.environ.get('ROWS', '0,1')}&scale=2{os.environ.get('EXTRA', '')}\"],\n capture_output=True, text=True, timeout=900)\n m = re.search(r'id=\"sheetOut\"[^>]*>[redacted: data-URI prefix]([A-Za-z0-9+/=]+)<', r.stdout)\n if not m:\n err = re.search(r'id=\"sheetOut\"[^>]*>([^<]*)<', r.stdout)\n print(name, \"FAILED\", err.group(1)[:300] if err else r.stderr[-800:])\n continue\n p = os.path.join(out, f\"painted_{name}.png\")\n open(p, \"wb\").write(base64.b64decode(m.group(1)))\n print(name, p, f\"{time.time() - t0:.0f}s\")\nfinally:\n server.terminate()\n"}{"chunk_id":"8f3412","wall_time_seconds":0.00000569,"exit_code":0,"original_token_count":4355,"output":"\"\"\"Build the model-viewer review page for the cast on stage, and their duel.\n\n python3 review/vroid-02/build.py every character, the ground and the page\n python3 review/vroid-02/build.py elaine just Elaine (the others stay as last built)\n\nWrites to review/out/vroid-02/site/:\n <name>.glb.json each character, skinned, in the reference (bust) pose, with animation clips:\n idle, attack, clash (the two-character sword bind) and apose (arms out, for\n checking a costume where hanging arms would hide it). Artifact hosting serves\n .json but not .glb, so the model is base64-wrapped.\n plains.glb.json the battle ground (static)\n camera.json per character: the cameras for both views plus what the live renderer needs\n (palette roles, lights, colliders, cloth grids); the duel's stage camera and\n where each fighter stands\n checks.json per character: the automatic checks (tools/checks.py) over every keyframe: arms\n through the body, and garments showing through plate\nand review/out/vroid-02/geom/<name>.npz (every piece as built), which tools/regress.py compares with the\nlast published version (snapshot.py) after each build.\nthen copies index.html next to them. The duel's poses are cached (they take about a minute to\nsolve) and re-solved when the rig, the duel or the cast entries change.\n\"\"\"\nimport base64\nimport hashlib\nimport json\nimport os\nimport pickle\nimport shutil\nimport sys\nfrom concurrent.futures import ProcessPoolExecutor\n\nimport numpy as np\n\nHERE = os.path.dirname(os.path.abspath(__file__))\nROOT = os.path.dirname(os.path.dirname(HERE))\nsys.path[:0] = [os.path.join(ROOT, \"tools\"), os.path.join(ROOT, \"art\", \"cast\"), HERE]\nimport vroid_portrait as vp # noqa: E402\nimport poses as P # noqa: E402\nimport terrain # noqa: E402\nimport export_glb # noqa: E402\nimport clips # noqa: E402\nimport duel # noqa: E402\nimport checks # noqa: E402\nfrom duel_check import chars_for # noqa: E402\nfrom cast import CAST # noqa: E402\n\nVROID = os.environ.get(\"LOWMARCH_VROID\", os.path.expanduser(\"~/.local/share/lowmarch/vroid\"))\n# which review page: the cast viewer (vroid-02), or a workshop page on a smaller roster (its own artifact)\nSITE = os.environ.get(\"LOWMARCH_SITE\", \"vroid-02\")\nWORKSHOPS = {\n \"mh-workshop\": dict(\n title=\"Body workshop\", eyebrow=\"Lowmarch · MakeHuman bodies, VRoid heads\",\n roster=[\"mob_mh_youth\", \"mob_mh_veteran\", \"mob_mh_brute\", \"mob_mh_f_youth\", \"mob_mh_f_veteran\", \"mob_mh_f_strong\"],\n notes=os.path.join(HERE, \"mh_workshop_notes.html\")),\n # the armory: bodies to assemble characters from, T-posed and bare (no clips, no checks): VRoid's base shaped by\n # MakeHuman references (art/cast/cast.py ARMORY), which are built but never shown\n \"armory\": dict(\n title=\"Armory\", eyebrow=\"Lowmarch · VRoid bodies shaped by MakeHuman, T-posed for inspection\",\n roster=[n for n in CAST if n.startswith(\"arm_\")], armory=True,\n notes=os.path.join(HERE, \"armory_notes.html\")),\n \"base-spike\": dict(\n title=\"Base spike\", eyebrow=\"Lowmarch · which base model: MakeHuman, VRoid heads, Quaternius\",\n roster=[n for n in CAST if n.startswith(\"spk_\")],\n notes=os.path.join(HERE, \"base_spike_notes.html\")),\n}\nWORKSHOP_ONLY = {n for w in WORKSHOPS.values() for n in w[\"roster\"]} - {\"mob_mh_youth\", \"mob_mh_veteran\", \"mob_mh_brute\"}\nOUT = os.path.join(ROOT, \"review\", \"out\", SITE, \"site\")\nCACHE = os.path.join(ROOT, \"review\", \"out\", \"vroid-02\", \"cache\")\nGEOM = os.path.join(ROOT, \"review\", \"out\", \"vroid-02\", \"geom\") # per-piece geometry of the last build\nORDER = {\"player\": \"aldric\", \"opponent\": \"elaine\"}\n# the armory's skin picker (cast.SKINS): people light to deep, then fantasy\nSKIN_PICKER = [(\"People\", [(\"porcelain\", \"Porcelain\"), (\"ivory\", \"Ivory\"), (\"peach\", \"Peach\"), (\"sand\", \"Sand\"),\n (\"honey\", \"Honey\"), (\"olive_mid\", \"Olive\"), (\"amber\", \"Amber\"), (\"caramel\", \"Caramel\"),\n (\"chestnut\", \"Chestnut\"), (\"umber\", \"Umber\"), (\"mahogany\", \"Mahogany\"), (\"ebony\", \"Ebony\")]),\n (\"Fantasy\", [(\"drow_ash\", \"Dark elf, ash\"), (\"drow_slate\", \"Dark elf, slate\"), (\"ashen\", \"Ashen\"),\n (\"orc\", \"Orc\"), (\"orc_deep\", \"Orc, deep\"), (\"sea\", \"Sea\"), (\"infernal\", \"Infernal\")])]\nLABELS = {\"aldric\": \"Aldric\", \"elaine\": \"Elaine\", \"saber\": \"Saber (study)\"} # saber: a benchmark, not for the game\nMOBS = [k for k in CAST if k.startswith(\"mob_\") and k not in WORKSHOP_ONLY] # common enemies: built, stood in the lineup\n# MakeHuman-based units stand first, next to the VRoid soldier they are compared with\nMOBS = sorted(MOBS, key=lambda k: (0 if k == \"mob_soldier\" else 1 if CAST[k].get(\"mh\") else 2))\nLABELS.update({k: CAST[k].get(\"label\", k[4:].title()) for k in MOBS})\nif SITE in WORKSHOPS: # a workshop page: only its roster, in its order, no duel\n MOBS = list(WORKSHOPS[SITE][\"roster\"])\n LABELS = {k: CAST[k].get(\"label\", k[4:].title()) for k in MOBS}\n# arms raised 35 degrees from the T-pose: shows the waist, the sides and the armpits\nAPOSE = P.merge(P.BUST, {\"J_Bip_L_UpperArm\": P.rot((0, 0, 1), -37), \"J_Bip_R_UpperArm\": P.rot((0, 0, 1), 37),\n \"J_Bip_L_Shoulder\": P.rot((0, 0, 1), -6), \"J_Bip_R_Shoulder\": P.rot((0, 0, 1), 6)})\n\n\ndef costume_of(c):\n \"\"\"The cast entry's costume, plus kit hair (hair_style) and facial hair (beard: a style, or\n (style, length)) if it has them.\"\"\"\n import outfit\n import hair\n base = outfit.COSTUMES[c.get(\"costume\") or \"lord\"]\n extra = []\n if c.get(\"hair_style\"):\n extra.append(lambda fit: getattr(hair, c[\"hair_style\"])(fit))\n if c.get(\"beard\"):\n style, length = (c[\"beard\"], 0.0) if isinstance(c[\"beard\"], str) else c[\"beard\"]\n extra.append(lambda fit: hair.beard(fit, style, length=length))\n if not extra:\n return base\n return lambda fit: base(fit) + [pc for f in extra for pc in f(fit)]\n\n\ndef model_path(name, c):\n \"\"\"A VRoid model under LOWMARCH_VROID, or a converted MakeHuman or Quaternius body, or a reshaped VRoid one\n (tools/makehuman.py, tools/quaternius.py, tools/mass.py, tools/cage.py, run first with `python3 -I`: they\n read downloaded data).\"\"\"\n if c.get(\"mass\"):\n import mass\n p = mass.path_for(name, c[\"mass\"])\n if not os.path.exists(p):\n raise SystemExit(f\"{name}: no massed VRoid body; run python3 -I tools/mass.py first\")\n return p\n if c.get(\"cage\"):\n import cage\n p = cage.path_for(name, c[\"cage\"])\n if not os.path.exists(p):\n raise SystemExit(f\"{name}: no cage body; run python3 -I tools/cage.py first\")\n return p\n if c.get(\"qt\"):\n import quaternius\n p = quaternius.path_for(name, c[\"qt\"])\n if not os.path.exists(p):\n raise SystemExit(f\"{name}: no converted Quaternius body; run python3 -I tools/quaternius.py first\")\n return p\n if not c.get(\"mh\"):\n return os.path.join(VROID, c[\"model\"])\n import makehuman\n p = makehuman.path_for(name, c[\"mh\"])\n if not os.path.exists(p):\n raise SystemExit(f\"{name}: no converted MakeHuman body; run python3 -I tools/makehuman.py first\")\n return p\n\n\ndef arm_room(name, c, need=0.006, most=16):\n \"\"\"The smallest outward arm angle (degrees, shape[\"arm_out\"]) at which the hanging arms clear the\n body by `need` in the reference pose and the idle: broad bodies otherwise sink their arms into\n their sides. MakeHuman bodies only for now (the VRoid cast was posed by hand).\"\"\"\n import checks\n from vrm import VRM\n v = VRM(model_path(name, c))\n limbs = [f\"{s}_{a}\" for s in \"LR\" for a in (\"UpperArm\", \"LowerArm\")]\n for deg in range(0, most + 1, 2):\n b = checks.Body(v, dict(c[\"shape\"], arm_out=float(deg)))\n if min(b.worst(pose, limbs) for pose in (P.BUST, P.BATTLE_IDLE)) >= need:\n return float(deg)\n return float(most)\n\n\nARMORY = bool(WORKSHOPS.get(SITE, {}).get(\"armory\")) # T-posed and bare: the reference pose is the T-pose\n\n\ndef portrait(name, view):\n c = CAST[name]\n if (c.get(\"mh\") or c.get(\"qt\") or c.get(\"mass\") or c.get(\"cage\")) and \"arm_out\" not in c[\"shape\"] and not ARMORY:\n c[\"shape\"][\"arm_out\"] = arm_room(name, c)\n return vp.Portrait(model_path(name, c), shape=c[\"shape\"],\n hair_from=os.path.join(VROID, c[\"hair\"]) if c.get(\"hair\") else None,\n costume=costume_of(c), pose={} if ARMORY else vp.BUST_POSE, hair_trim=c.get(\"hair_trim\"),\n world=terrain.plains() if view == \"battle\" else None), c\n\n\ndef springs(v):\n \"\"\"The model's spring bones (VRM 0.x secondaryAnimation: VRoid's women's base has its breasts', a hairstyle its\n hair's, tools/heads.py): each group's root bones, settings and collision spheres (on a bone, offset in its own\n frame, before the export's turn), for the viewer's physics.\"\"\"\n sa = v.j.get(\"extensions\", {}).get(\"VRM\", {}).get(\"secondaryAnimation\", {})\n nodes = v.j[\"nodes\"]\n spheres = [[dict(bone=nodes[cg[\"node\"]][\"name\"], offset=[c[\"offset\"][\"x\"], c[\"offset\"][\"y\"], c[\"offset\"][\"z\"]],\n radius=c[\"radius\"]) for c in cg.get(\"colliders\", [])] for cg in sa.get(\"colliderGroups\", [])]\n out = []\n for g in sa.get(\"boneGroups\", []):\n gd = g.get(\"gravityDir\", {\"x\": 0, \"y\": -1, \"z\": 0})\n out.append(dict(bones=[nodes[b][\"name\"] for b in g[\"bones\"]], stiffness=g.get(\"stiffiness\", 1.0),\n gravity=g.get(\"gravityPower\", 0.0), gravity_dir=[gd[\"x\"], gd[\"y\"], gd[\"z\"]],\n drag=g.get(\"dragForce\", 0.4), radius=g.get(\"hitRadius\", 0.02), comment=g.get(\"comment\", \"\"),\n colliders=[c for k in g.get(\"colliderGroups\", []) if k < len(spheres) for c in spheres[k]]))\n return out\n\n\ndef wrap_json(path):\n json.dump({\"glb\": base64.b64encode(open(path, \"rb\").read()).decode()}, open(path + \".json\", \"w\"))\n os.remove(path)\n\n\ndef character(args):\n \"\"\"The rigged character (reference pose) with its clips, its cameras, the live renderer's data and\n its checks.\"\"\"\n name, clash = args\n p, c = portrait(name, \"bust\")\n p.paint = c.get(\"paint\")\n pal = dict(vp.PALETTE, **c[\"colors\"])\n cam_bust, cam_battle = p.frame(\"bust\"), p.frame(\"battle\")\n if ARMORY: # nothing moves: every clip holds the T-pose\n cl = {k: [(0.0, {}), (1.0, {})] for k in (\"idle\", \"attack\", \"apose\")}\n else:\n cl = clips.clips(p.v, c[\"shape\"], c.get(\"stance\", \"sword\"))\n if clash:\n cl[\"clash\"] = clash\n cl[\"apose\"] = [(0.0, APOSE), (1.0, APOSE)]\n path = f\"{OUT}/{name}.glb\"\n size = export_glb.export_skinned(p, pal, path, clips=cl)\n wrap_json(path)\n save_geometry(name, p)\n if ARMORY: # the armory's checks are proportions (tools/proportions.py)\n return dict(name=name, size=size, cams=dict(bust=cam_bust, battle=cam_battle),\n info=dict(export_glb.scene_info(p, pal), springs=springs(p.v)), checks=proportion_checks(name, c))\n body = checks.Body(p.v, c[\"shape\"])\n keyed = {k: v for k, v in cl.items() if k != \"apose\"}\n head, bad, touch = checks.report(name, keyed, body)\n layers = checks.layer_report(name, keyed, checks.Layers(p, body))\n return dict(name=name, size=size, cams=dict(bust=cam_bust, battle=cam_battle), info=export_glb.scene_info(p, pal),\n checks=dict(summary=head, through=bad, touching=touch, layers=layers))\n\n\ndef save_geometry(name, p):\n \"\"\"Every piece's vertices as built (reference pose), for tools/regress.py to compare builds.\"\"\"\n os.makedirs(GEOM, exist_ok=True)\n arrays, seen = {}, {}\n for q in p.prims:\n key = q[\"material\"]\n seen[key] = seen.get(key, 0) + 1\n if seen[key] > 1:\n key = f\"{key}#{seen[key]}\"\n arrays[key] = q[\"pos\"][np.unique(q[\"tri\"])].astype(np.float32) if len(q[\"tri\"]) else q[\"pos\"].astype(np.float32)\n np.savez_compressed(os.path.join(GEOM, f\"{name}.npz\"), **arrays)\n\n\ndef _fit_of(c):\n \"\"\"The fit a body was made to (its own, or its cage reference's): the ratios it skips (the heavy targets'\n widths were measured on armour), ranges of its own, its figure.\"\"\"\n spec = c.get(\"mh\") or {}\n ref = (c.get(\"cage\") or {}).get(\"ref\")\n if isinstance(ref, str):\n spec = CAST[ref].get(\"mh\", {})\n elif isinstance(ref, (list, tuple)):\n spec = ref[1]\n return spec.get(\"fit\", {})\ntools/mobs.py:13:def _base(fit, shirt=\"padding\", legs=\"cloth\", boots=\"boot\", gloves=\"glove\", knee=None, shirt_subdiv=0, boot_top=None):\ntools/mobs.py:43:def underwear(fit, band=False):\ntools/mobs.py:64: p[\"group\"] = \"underwear\"\ntools/mobs.py:74:def underwear_f(fit):\ntools/mobs.py:75: return underwear(fit, band=True)\ntools/mobs.py:78:def _under(shirt):\ntools/mobs.py:82:def _surf(pcs, *names, prefix=False):\ntools/mobs.py:88:def soldier(fit, legs=\"breeches\"):\ntools/mobs.py:127:def soldier_f(fit):\ntools/mobs.py:132:def fighter(fit):\ntools/mobs.py:169:def housecarl(fit):\ntools/mobs.py:192:def hoplite(fit):\ntools/mobs.py:238:def berserker(fit):\ntools/mobs.py:258:def hunter(fit):\ntools/mobs.py:278:def thief(fit):\ntools/mobs.py:299:def witch(fit):\ntools/outfit.py:32:def grid_mesh(P):\ntools/outfit.py:41:def piece(name, role, pos, tri, nrm=None, outward_from=None, axis=None):\ntools/outfit.py:59:def thick_grid(P, thickness, outward_from, axis=None):\ntools/outfit.py:90:def frame_axes(a, hint=(0, 1, 0)):\ntools/outfit.py:99:def box(name, role, centre, axes, half):\ntools/outfit.py:113:def tube(name, role, start, axis, length, r0, r1=None, seg=16, rows=2):\ntools/outfit.py:127:def ball(name, role, centre, r, seg=14, rows=8, squash=(1, 1, 1)):\ntools/outfit.py:140:def ribbon(name, role, curve, width=0.006, lift=0.002, normals=None, away=None, closed=False):\ntools/outfit.py:230:def without(pc, bones, max_w=0.3):\ntools/outfit.py:239:def inherit(child, parent):\ntools/outfit.py:246:def near_normals(pc, pts):\ntools/outfit.py:251:def wrap(fit, name, role, bones, offset, min_w=0.5, exclude=(), y_min=None, y_max=None, subdiv=0,\ntools/outfit.py:304:def loop_trim(name, role, garment, pick, width=0.008, lift=0.0015):\ntools/outfit.py:313:def slice_line(pc, axis=0, value=0.0, keep=lambda p: True):\ntools/outfit.py:328:def collar(fit, name, role, height_back=0.044, height_front=0.028, gap_deg=50, clear=(0.009, 0.015),\ntools/outfit.py:355:def pauldron(fit, name, role, over, side=\"L\", lames=((0, 62, 0.012, 0.016), (55, 78, 0.010, 0.013),\ntools/outfit.py:397:def drape(P0, collide, clearance, pinned, steps=90, iters=10, gravity=0.0025, bend=0.25, closed=False):\ntools/outfit.py:445:def cape(fit, name, role, under, length=1.0, phi=0.55, seg=44, rows=18, top_clear=0.003,\ntools/outfit.py:474:def tails(fit, name, role, under, y_top, length=0.36, front_gap=60, seg=40, rows=12, clear=(0.012, 0.030)):\ntools/outfit.py:498:def belt(fit, name, role, over, y, height=0.034, offset=0.006, thickness=0.005, seg=56, tilt=0.0):\ntools/outfit.py:517:def sword(fit, hand=\"R\", blade_len=0.80, blade_w=0.042, grip_len=0.15, hilt=\"gold\", grip=\"leather\"):\ntools/outfit.py:552:def pipe(name, role, curve, r=0.0026, seg=6, closed=False):\ntools/outfit.py:579:def limb_surface(fit, bones, side=None):\ntools/outfit.py:589:def side_of(pc, side):\ntools/outfit.py:595:def limb_lames(fit, name, role, over, top, bottom, lames, arc=(-180, 180), front=(0, 0, -1), thickness=0.0035,\ntools/outfit.py:626:def dome(name, role, centre, normal, up, r, depth, thickness=0.003, seg=20, rows=6, scallop=0.0):\ntools/outfit.py:643:def fan(name, role, centre, toward, axis, lateral, radius, sweep=80, ribs=4, cup=0.012, thickness=0.003,\ntools/outfit.py:661:def joint_guard(fit, name, joint, child, toward, side, over, r=0.034, wing=0.062, depth=0.020):\ntools/outfit.py:680:def panel(fit, name, role, under, collide, y_top, centre_deg, half_width, length, seg=14, rows=22,\ntools/outfit.py:716:def mantle(fit, name, role, over, seg=64, rows=16, gap_deg=12, clear=(0.010, 0.016)):\ntools/outfit.py:780:def shield(fit, name, side=\"L\", radius=0.20, boss=0.045):\ntools/outfit.py:819:def closed_grid_mesh(P):\ntools/outfit.py:829:def skirt(fit, name, role, under, collide, y_top, length, flare=0.26, seg=56, rows=20, folds=9, fold_depth=0.012,\ntools/outfit.py:858:def updo(fit, hair_role=\"hair\", ribbon_role=\"signature\"):\ntools/outfit.py:900:def sabaton(fit, name, side, role=\"metal\", pad=0.010, ridges=3, seg=26, rows=14):\ntools/outfit.py:942:def knight_dress(fit):\ntools/outfit.py:1034:def lord_tunic(fit):\ntools/outfit.py:1110:def lord(fit):\ntools/outfit.py:1267:COSTUMES = {\"lord\": lord, \"lord_tunic\": lord_tunic, \"knight_dress\": knight_dress,\ntools/outfit.py:1270:for _cls in (\"soldier\", \"soldier_f\", \"fighter\", \"housecarl\", \"hoplite\", \"berserker\", \"hunter\", \"thief\", \"witch\",\ntools/outfit.py:1271: \"underwear\", \"underwear_f\"): # common enemy classes (tools/mobs.py)\ntools/outfit.py:1272: COSTUMES[f\"mob_{_cls}\"] = (lambda c: lambda fit: getattr(__import__(\"mobs\"), c)(fit))(_cls)\n# Study references (third-party art) never live in this repo; see docs/study.md\nrefs/\nstudy/\n__pycache__/\n*.pyc\nreview/out/\n"}