Mesh polish host add-on for generated meshes; headless intent runner; turntable recipe #22

Merged
eureka merged 6 commits from nibu/fable-mesh-polish into main 2026-12-01 01:40:21 +00:00

2026-12-01

Meta Vens
brokkr_mesh_polish: repair and cut_parts turn no face; orient keeps the hierarchy; the tests pin the operators
Soul falsified PR 22: repair's unconditional recalc_face_normals reversed 4,565 of 23,341
and 15,735 of 28,426 triangles on two further Tripo hulls, which a single-sided material
culls. repair now leaves every winding alone; recalc_normals is opt-in and reports
windingFlipped. cut_parts no longer recalculates either. Custom shading normals are carried
through weld, fill and cut as plain directions and set back, new faces are shaded by their
own direction, and delight reads those shading normals instead of winding-derived ones.

audit: windingAgainstNormals, and uvMirroredTriangles (texture parity against the shading
normals) in place of uvFlippedTriangles, which changed whenever a winding did.
orient: object_name scopes it to a root and its descendants; parents and pivots are kept.
cut_parts: a mesh with no material keeps a bare first slot, so only caps take the cap material.

Tests: 13 more unit tests and 18 more live checks (43 with BROKKR_POLISH_HULLS). The live
sphere is now torn, half inside out under outward custom normals. Soul's 26 mutants and 11
of this batch's own all die.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:17:45 +01:00
Meta Vens
run_intents: refuse Blender user directories that are a person's own, or that Blender is not using
The guard only checked that the three variables were non-empty. tools/private_dirs.py now
refuses a variable set inside %APPDATA%/Blender Foundation, ~/.config/blender or the macOS
folder, and a Blender whose own answer for CONFIG, EXTENSIONS or SCRIPTS is not under the
variable. (Soul finding run-intents-guard-checks-non-empty, PR 22.)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:17:45 +01:00
Meta Vens
docs: mesh polish actions, the headless intent runner and the turntable recipe
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:08:05 +01:00
Meta Vens
brokkr_mesh_polish: a host add-on that measures and polishes generated meshes
Seven agent-callable operators for image-to-3D output (Tripo and its kin): audit (welded
topology, UV overlap, texel density), repair, orient, delight (undo baked lighting that
normals and occlusion explain), pick, scrub_markings (paint out baked lettering) and
cut_parts (cut a fused skin into capped, rooted, parented parts from seeds).

The arithmetic is core.py, numpy only, tested without Blender; the host file is tested
against Brokkr's own checker; tests/live/mesh_polish.py proves every row through run_intent
in Blender 5.3.0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:08:04 +01:00
Meta Vens
Blender tools: run an intent recipe in a background Blender; write a turntable recipe
run_intents.py sends a JSON list of intents through BrokkrBlenderTarget.run_intent in a
background Blender (the action table admits or denies each, host rows included) and writes
the receipts to a file. It refuses to start without private Blender user directories.
turntable_recipe.py writes such a recipe from Brokkr's own scene actions, so a before and
an after of one subject are framed identically.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:08:04 +01:00