Brush tree: target r4, Blender evaluates and finishes, Geometry.Csg welds locally with corners kept, three brush modes, live result object

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-13 00:07:52 +02:00
commit 40faab6f69

View file

@ -1,229 +1,263 @@
# Brush tree: target (r3) # Brush tree: target (r4)
Campaign `brush-tree`, owned by the Aetheria/Ghostlight Self. Drafted by Imagination Campaign `brush-tree`, owned by the Aetheria/Ghostlight Self. Drafted by Imagination
(`imagination-brush-tree-target-r3`, session `self-2026-10-11-ag2`) on 2026-10-12. (`imagination-brush-tree-target-r4b`, session `self-2026-10-12-ag`) on 2026-10-13.
It supersedes r2 (`a7879dad`). This page holds the ends, not the means: no cut plan. The typed It supersedes r3 (`842d101`). This page holds the ends, not the means: no cut plan. The typed
`brush-tree:target:r3` holds the invariants, the not-in-scope list and the canonical implementations; `brush-tree:target:r4` holds the invariants, the not-in-scope list and the canonical implementations;
this page holds why, the authority map, and what is still unknown. this page holds why, the authority map, and what is still unknown.
- **Repos:** `GameCult/GameCult.Geometry.Csg` (the tree, the cage evaluator, the kernel, booleans and the - **Repos:** `GameCult/GameCult.Geometry.Csg` (the tree, booleans, the weld, the scorer, and the Blender
weld, the scorer), `GameCult/Brokkr` (the agent's hands in Blender), `GameCult/Aetheria` (the first extension that runs them live), `GameCult/Brokkr` (the agent's hands in Blender), `GameCult/Aetheria`
consumer). (the first consumer).
- **Working branch:** `eureka/brush-tree`. - **Working branch:** `eureka/brush-tree`.
## The rulings this target rests on ## The rulings this target rests on
Read them in the mind by id; their operator quotes are the authority, not this page. Read them in the mind by id; their operator quotes are the authority, not this page.
- `brush-tree:ruling:hand-cages-enter-the-tree` (Operator, 2026-10-12): a continuous hull's primary - `brush-tree:ruling:hand-cages-enter-the-tree` (Operator, 2026-10-12): a continuous hull's primary form
form is an artist's cage, entered as a tree primitive with its distance defined once in Geometry.Csg; is an artist's cage, entered as a tree primitive; detail is cut into its evaluated surface. Automatic
detail is cut into its evaluated surface. Automatic cage generation is research and gates nothing. cage generation is research and gates nothing.
- `brush-tree:ruling:boolean-cleanup-tighter-curve-wins` (Operator): detail is boolean cuts into the - `brush-tree:ruling:blender-evaluates-cages` (Operator): Blender evaluates the cage's Mirror and
evaluated hull, and the weld cleanup is automated by her rule. Her words: "the surface with the Subdivision; Geometry.Csg cuts, splits and welds the result. One evaluator by construction.
tighter curve defines the silhouette of the cut, and the spare vertices that come from the flatter - `brush-tree:ruling:brush-modes-add-subtract-split` (Operator): a detail brush is add (union), subtract
surface all get merged away." (cut) or split (keep both sides). All three are booleans on the evaluated cage mesh and never move the
- `brush-tree:ruling:panel-lines-by-split-boolean-r2` (Operator): a panel line is a through-cut that cage.
keeps both sides; the stack's one-segment Bevel and Weighted Normal turn the split into a seam. The weld - `brush-tree:ruling:weld-owner-local-corners-kept` (Operator): ownership is local along each loop. At
rule applies to its seams too. It is the only panel-line method: the operator chose geometry over each stretch, the surface whose vertices carry more of the silhouette keeps them and the other's spare
parallax decals (`aetheria-release:ruling:panel-lines-are-geometry`), so hull panel lines are in this vertices near that stretch merge away. A hard-edged cutter's corners always survive. On a flat split
campaign's scope. the hull carries the silhouette everywhere and the seam stays on the cutter's plane. It refines
- `brush-tree:ruling:primary-form-is-the-hand-cage` (Defaulted): research generators are scored against `weld-owner-defines-silhouette`, which superseded `boolean-cleanup-tighter-curve-wins`; neither is in
the hand cage's limit surface, not against a masked or smoothed scan. force.
- `brush-tree:ruling:representation-per-hull`: cages for continuous bodies like Dexter Quiet, primitives - `brush-tree:ruling:weld-runs-as-live-result-object` (Operator): the cage keeps its own Mirror and
for mechanical hulls like the squatter mech ship. Subdivision; brushes are ordinary objects in a brush collection, listed in order on the result object's
- `brush-tree:ruling:shippable-part-bar`, `:no-unownable-tools-in-loop`, `:openscad-target`, Cuts panel (mode, enable, bevel weight); a Rust step in a GPL extension wheel runs the booleans and the
`:brokkr-beats-blender-mcp`, `:cli-not-mcp`, and the defaulted rulings on the Blender sink, `run`, docs weld and writes the result object's mesh, whose own stack is Bevel (weight mode) then Weighted Normal.
lookup, look files, the per-ship tree `.cc`, persistence through cultcache-rs, the Package path, Nothing is ever applied; the same code produces the shipped lowering.
Studio and impostors: unchanged from r2. - `brush-tree:ruling:panel-lines-by-split-boolean-r2` (Operator): a panel line is a through-cut that keeps
- `brush-tree:ruling:pursue-sdf-composition-remeshing` and `:spike-sdf-smin-to-cage`: still in force, both sides, then the one-segment bevel with face-weighted normals. It is the only panel-line method
but narrowed by `hand-cages-enter-the-tree`. SDF composition with automated remeshing is one research (`aetheria-release:ruling:panel-lines-are-geometry`). Its text names the superseded cleanup ruling; the
generator among the cage-connectivity candidates, not the production path. weld rule that applies to its seams is now `weld-owner-local-corners-kept`.
- `brush-tree:ruling:no-unownable-tools-in-loop` (Operator): everything in the loop is open source we can
build and patch. This now excludes Shewchuk's Triangle, whose licence bars commercial use.
- `brush-tree:ruling:primary-form-is-the-hand-cage`, `:representation-per-hull`, `:shippable-part-bar`,
`:openscad-target`, `:brokkr-beats-blender-mcp`, `:cli-not-mcp`, and the defaulted rulings on the
Blender sink, `run`, docs lookup, look files, the per-ship tree `.cc`, persistence through
cultcache-rs, the Package path, Studio and impostors: unchanged from r3.
- `brush-tree:ruling:settled-direction-2026-10-10` still says "mesh CSG is the main representation". r4
agrees in substance (every production part lowers to a mesh and all detail is mesh booleans) but its
primary form for continuous hulls is a subdivision cage, which `representation-per-hull` already
ruled. Self holds a draft superseding text that states this; until it is admitted, read "mesh CSG" as
"meshes and mesh booleans, over a cage or kernel primary form".
## What changed from r2, in one paragraph ## What changed from r3, in one paragraph
r2 made the SDF composition the authority for a continuous hull's shape and derived a fitted cage from r3 had one weld rule (the surface with larger normal curvature across the loop owns the whole loop),
it, with the operator's hand cage as the measuring stick. Two findings ended that. The detail as cut or split only, an open question about who evaluates the cage, and no answer to where the
cage-connectivity pass (`cage-connectivity-prior-art.md` @ 492f83a) found no open method that reaches weld runs. Spike rounds 1 to 3 (`spike-boolean-weld.md` on `spike/boolean-weld` @ db2c162) showed that
a coarse quad cage at the hand cage's quality. Every method starts from a dense mesh, and only curvature across the loop picks the wrong owner for every cylinder cut, that a flat split's seam must stay
Lavoue 2009 reports output at about 200 faces, with n-gons and high valence accepted. The operator then on the cutter's plane, and that ownership must be decided per stretch with corners protected. The operator
ruled her own cages into the tree, and named her detail practice: boolean cuts into the subdivided form, then ruled the three modes, the local owner with corners kept, Blender as the cage evaluator, and a live
then a weld she does by a rule simple enough to automate. So in r3 the cage is authored, not derived. result object fed by a Rust wheel. So in r4 Blender owns evaluation and finishing, Geometry.Csg owns
The field leaves the production path for continuous hulls. The open engineering problem moves from everything between, and the authoring buffer is Blender objects that commit into the typed tree.
generating connectivity to cleaning booleans on a curved evaluated surface.
## What the pipeline turns a brush tree into ## What the pipeline turns a brush tree into
**The tree** is one typed document per ship (`tree-store-per-ship-cc`). Every part, meaning a top-level **The tree** is one typed document per ship (`tree-store-per-ship-cc`). Every part declares its
branch, declares its representation, `cage` or `kernel`. The declaration is authored, never inferred. representation, `cage` or `kernel`, and carries an ordered detail list. Each entry names a brush, its
Each part carries a detail list of cutters, each tagged `cut` (remove) or `split` (keep both sides). mode (`add`, `subtract`, `split`), an enable flag and a bevel weight. A brush is a closed manifold mesh:
either a kernel primitive lowered alone or a mesh authored in Blender (a polyhedron in the text).
**A `cage` part** (continuous body, Dexter Quiet): **A `cage` part** (continuous body, Dexter Quiet):
1. **Primary form: the cage primitive.** The tree holds control points, faces (quads and triangles), 1. **Primary form: the cage primitive.** Control points, quad and triangle faces, edge crease weights,
edge crease weights and the mirror plane. She authors it in Blender. A `brokkr-ctl` commit reads the the mirror plane, and her UVs if she has unwrapped it. She authors it in Blender; a commit reads the
cage object and commits it as a new revision of the part against its base revision. After that the cage object into a new revision against its base revision. A commit is refused when a crease chain is
Blender cage object is a projection, and an edit to it is a proposed commit, as for any brush proxy. open and does not end on the mirror plane.
A commit is refused when a crease chain is open and does not end on the mirror plane (her finding: 2. **Evaluated mesh, by Blender.** The cage object's own Mirror and Subdivision modifiers, at the declared
open crease paths give "horrible geometry" in Blender's Catmull-Clark). level. Blender is the only evaluator (`blender-evaluates-cages`). Geometry.Csg never subdivides a cage,
2. **Evaluated mesh, derived.** Mirror, then Catmull-Clark to the limit surface at a declared level, for production or for measurement.
with Blender's crease rules (`one-subdivision-rule`). Who runs this evaluation is question 3. **Detail, by Geometry.Csg.** The detail list is folded over the evaluated mesh left to right: `add` is
`cage-evaluator`. union, `subtract` is difference, `split` is difference plus intersection kept as two pieces sharing one
3. **Detail, derived from cutters.** Each cutter is a kernel brush, lowered alone to a closed mesh. seam loop. A disabled entry stays in the tree and is not applied; that is authored state, not a skip.
- `cut`: the evaluated mesh minus the cutter (gun ports, vents, intakes). Every intersection loop is welded by the rule below. The edges each brush creates take its bevel
- `split`: the evaluated mesh minus the cutter, plus the evaluated mesh intersected with the cutter, weight; per-edge weights authored on the brush mesh carry onto the edges it creates; the cage's crease
kept as two pieces that share one seam loop. This is how every panel line is made; there is no weights carry through as bevel weights. Detail never moves the cage, and outside the weld band the
decal path. output's vertices are the evaluated mesh's vertices, unchanged.
Every intersection loop is then welded by the rule below, and its edges get the bevel weight. 4. **Finishing, by Blender.** The result object's own stack: Bevel (one segment, weight-limited), then
Detail never moves the cage. Outside a band around each loop, the output's vertices are the evaluated Weighted Normal. Nothing in the stack is ever applied.
mesh's vertices, unchanged.
4. **Shipped stack on the output object:** Bevel (one segment, limited by weight: the crease loops
plus every cut and split loop), then Weighted Normal. Seams for UVs lie on closed crease loops, part
boundaries and split loops, so every panel is its own island.
**The weld rule**, as specified for the spike (`boolean-cleanup-prior-art.md` @ 34cccf3 found it **A `kernel` part** (mechanical, the squatter mech ship): the polygon kernel builds exact planar faces
nowhere under any name): with scoped booleans and per-face brush and surface ids; its detail list runs through the same booleans,
weld and finishing stack as a cage part's.
- Along each intersection loop, compare the two surfaces' normal curvature across the loop. The across
direction is the surface tangent perpendicular to the loop tangent.
- The surface with the larger magnitude owns the loop. The loop's vertices are sampled at the owner's
resolution and lie on the owner's surface.
- The yielding surface's vertices within one ring of the loop, plus any of its loop vertices that are
not owner vertices, collapse onto the nearest owner loop vertex.
- A collapse is refused if it flips a triangle or drops the worst angle below a floor. This is the
Manifold `CollapseEdge` guard (same file, s.1).
- In a `split`, the two pieces weld their shared loop identically, so the seam stays closed vertex for
vertex.
Undefined so far, and named as the spike's failure cases: equal curvature, saddles where the across
direction changes sign, a loop crossing a crease, and an ownership switch partway along one loop.
**A `kernel` part** (mechanical, the squatter mech ship): unchanged from r2. The polygon kernel builds
exact planar faces with scoped booleans, a one-segment bevel on hard edges, face-weighted normals and
UVs from each brush's declared charts. Its cutters use the same boolean and weld as a cage part's
detail.
**Both** reach Aetheria the same way (`lowered-hull-through-package`): an object in the ship file, **Both** reach Aetheria the same way (`lowered-hull-through-package`): an object in the ship file,
exported by the existing Package. Nothing reads an evaluated mesh, cut mesh or render back as truth. exported by the existing Package.
### Distance for a cage primitive, stated honestly ### The weld, as ruled
`one-distance-per-primitive` holds for the cage. Its distance is defined once in Geometry.Csg as the The weld's job is to choose which samples of each intersection curve survive and to clean the band
unsigned distance to the limit surface, signed by winding number. The cost is the honest part. around it. It never chooses the curve's path.
- The limit surface has exact evaluation: Stam 1998, OpenSubdiv `LimitStencilTable`, and run 3's - **Owner, per stretch.** Along each loop, compare each surface's curvature along the loop,
`X = S c`, linear in the cage. A closest point on it comes from a Newton search `k = II(t, t)` with `t` the loop tangent. Spike round 1 showed this is the reading that matches her
(Marinov and Kobbelt 2005). So the distance is computable (`subd-cages-mixed-hulls-and-open-kernels.md` sentence; curvature across the loop gives the opposite owner for every cylinder. The surface whose
@ 390db63, s.1). vertices carry more of the silhouette at that stretch owns it. A planar brush face has `k = 0`, so on a
- No source gives a **cheap distance bound** away from the surface, that is, a Lipschitz-safe lower flat split or a box cut-in the hull owns every stretch. A small curved brush in a flatter surface owns
bound usable for sphere tracing, Newton projection from afar, or smooth-min composition with other its loop.
primitives. The r1 field assumed one for every primitive. - **Spare vertices.** The yielding surface's spare vertices near an owned stretch merge away: loop
- So the cage primitive is refused inside any field composition (smooth union, hard `max` crease) and in vertices made only by the yielding side's edges merge along the loop into the nearest owner-made loop
sphere tracing (`no-silent-skips`). Its distance serves measurement only: heatmaps, scores and fit vertex, and yielding-side vertices one ring off the loop merge onto it.
residuals, evaluated near the surface from a dense limit sample. Nothing in the production path needs - **Corners survive.** A loop vertex on a hard brush edge (dihedral above a threshold) or on a hull crease
more. A bound, if one is ever needed, is research. edge is never a merge source and never moves.
- **The path is fixed.** No weld step moves a loop vertex off the intersection of the two surfaces. A flat
seam stays on the cutter's plane to float precision. No snapping of the loop onto owner vertices on any
stretch, curved cutters included.
- **Band vertices move only within their own surface,** by at most the bevel width. This is how a vertex
that sits almost on the seam (round 3's residual 0.04 to 0.7 deg needles and bevel-clamped edges) is
resolved: it slides onto the seam inside its own surface, never across it. Whether this applies to the
owner's own vertices on a flat split is spike round 4's measure and the operator's eye (see "Not yet
known").
- **Created faces are ours to re-triangulate:** split caps, and brush walls trimmed by the hull, are
re-triangulated within their own plane by a constrained Delaunay triangulation with the loop, crease
and brush edges as constraints and interior Steiner points only. The CDT is `spade` or our own; never
Triangle.
- **Guards.** No collapse or flip inverts a triangle or drops the band's worst angle below the floor. In a
split, every operation must pass both pieces' guards, so the shared seam stays identical vertex for
vertex (crack 0).
- **Brush density.** A brush's tessellation along the loop stays near the hull's local density (about a
quarter to a third of the local edge length, never far finer): round 2's 48-segment port kept fans no
merge could remove.
### Where SDF composition still has a role Still undefined: equal curvature (spike: ties to the hull), saddles, and the vertex where ownership
switches. Round 3's switch probe keeps a 1.2e-6 deg needle on the owner side.
- **As a research generator.** An SDF program with smooth-min, remeshed and refit to a cage (runs 4-7), ### What Blender evaluates and what Rust owns
is one candidate source of cage connectivity. It is scored like any other candidate.
- **As the kernel brushes' distance.** `field.rs` stays the one distance for kernel primitives, for
heatmaps and scores.
- **Not as a part representation.** No production part is a `field` part, and smooth union leaves the
production vocabulary. A generator's output, if it ever meets the bar, enters as a cage, and so does
every continuous hull.
### Authority map (r2 to r3) | Step | Owner | Notes |
|---|---|---|
| Cage evaluation (Mirror, Subdivision, crease rules) | Blender, the cage object's own modifiers | `blender-evaluates-cages`; Geometry.Csg reads the evaluated mesh |
| Brush lowering (kernel primitive to mesh) | Geometry.Csg kernel | a Blender-authored brush mesh is read as is |
| Booleans, all three modes | Geometry.Csg, behind a port | boolmesh or manifold-csg; identical outputs in round 1 |
| Weld, re-triangulation, bevel-weight transfer, face provenance | Geometry.Csg | pure mesh math, testable on exported fixtures |
| Result object's mesh | written by the extension from Geometry.Csg's output | derived; never hand-edited |
| Finishing (Bevel then Weighted Normal) | Blender, the result object's own stack | never applied |
| Tree revision | Geometry.Csg tree, through the one commit primitive | the truth at rest |
- **Owner of a continuous hull's primary form:** the cage primitive in the tree. The field is no longer Blender's Boolean modifier, Weld modifier and Geometry Nodes Mesh Boolean decide no shipped detail. The
an owner. The cage is no longer derived from the field; it is authored and committed. nondestructive-weld pass (`nondestructive-weld-in-blender.md` @ 19e2f9b) found that Python cannot
- **Inputs:** the operator's cage object in Blender (through the commit primitive only), the part's register a modifier and that Geometry Nodes cannot express the guarded sequential collapse or the joint
cutter brushes. split guard, so a wheel feeding a result object is the route that keeps one implementation.
- **Outputs:** the lowered part object (evaluated, cut, split and welded mesh, with bevel weights), and
scores. ### Where the truth is while she edits
- **Derived state:** the evaluated mesh, the cutter meshes, the cut mesh, UV islands, heatmaps, renders.
These are cache only, regenerated per revision. The typed tree is the truth at rest. The Blender objects (the cage, the brush collection, the Cuts panel
- **Forbidden writers:** the SDF program, the cage fitter and any remesher writing a production cage. rows) are its edit buffer. The result object regenerates from the buffer on every change, so it is a
They write research artifacts only, and a research cage enters only by a commit like any other. Also preview of uncommitted edits as well as of committed ones. The shipped lowering comes from a committed
forbidden: Blender's Boolean modifier, or hand edits to the lowered object, deciding the shipped revision only: whatever Package exports must be the result of a revision, and a scene that differs from
detail. its revision is committed first or refused. This keeps `one-truth` with a live, nondestructive loop. How
- **Shared paths:** the operator's cage edit, a model's script edit and a research generator's the dirty check is made is a cut's business. If the operator expects the `.blend` itself to be the
candidate all enter through the one commit primitive. Cut-in and split use one boolean and one weld. truth, that is a different machine (Blender scene authority, the tree as an export) and needs her ruling
Kernel parts' cutters use the same boolean. first.
- **Deletion line:** r2's "cage connectivity generator" and "cage fitter" leave the production owner
table and become research ports. `field` leaves the per-part representation enum. Smooth union is not ### Distance, collapsed to one definition
added to the tree vocabulary.
r3 defined the cage's distance as distance to its limit surface, which would have needed a limit
evaluator in Geometry.Csg beside Blender's. Under `blender-evaluates-cages` that is a second evaluator. In
r4 there is one mesh distance in Geometry.Csg: unsigned distance to a closed mesh, signed by winding
number. A cage's distance is that distance to Blender's evaluated mesh at a declared measuring level; a
Blender-authored brush's is the same distance to its own mesh. Kernel primitives keep their analytic
distance in `field.rs`. Mesh distances serve measurement only (heatmaps, scores, fit residuals); they
have no cheap bound away from the surface, so they are refused in any field composition and in sphere
tracing.
### Authority map (r3 to r4)
- **Owner of evaluation:** Blender. Geometry.Csg is no longer a candidate cage evaluator; the r3
`one-subdivision-rule` question is closed.
- **Owner of detail and the weld:** Geometry.Csg, run in Blender by the extension, and run headless by
the same code for the shipped lowering.
- **Owner of finishing:** Blender's Bevel and Weighted Normal on the result object.
- **Inputs:** the cage object's evaluated mesh; the brush objects and their Cuts rows; the tree revision.
- **Outputs:** the result object's mesh (with bevel weights, face provenance and UVs), and scores.
- **Derived state:** the evaluated mesh, brush meshes, boolean pieces, the welded mesh, the result
object, heatmaps and renders. Cache only.
- **Forbidden writers:** Blender's Boolean and Weld modifiers and Geometry Nodes deciding shipped detail;
hand edits to the result object; any applied modifier; a Rust subdivision evaluator; a research
generator writing a production cage; the "curvature across the loop" owner and loop snapping (both
demoted by the spike and the ruling).
- **Shared paths:** her edit in Blender, a model's script through `brokkr-ctl blender run`, and a
research generator's candidate all reach the tree through the one commit primitive. The live preview
and the shipped lowering call the same Rust entry point. All three brush modes and both part
representations use the same booleans and weld.
- **Deletion line:** r3's `weld-rule` (across-loop curvature, one owner per loop), `detail-is-boolean`
(cut and split only) and `one-subdivision-rule` (owner open) leave the target. The cage limit-surface
distance leaves Geometry.Csg's plans. The spike's Triangle dependency and its Python weld are scratch
and do not carry.
### Owners, inputs, outputs, mock points ### Owners, inputs, outputs, mock points
| Owner | Inputs | Outputs | Mock point | | Owner | Inputs | Outputs | Mock point |
|---|---|---|---| |---|---|---|---|
| Tree (Geometry.Csg) | text or a cage object, through the one commit primitive | typed tree revision | in-memory store | | Tree (Geometry.Csg) | text, a cage object or brush objects, through the one commit primitive | typed tree revision | in-memory store |
| Cage evaluator | cage primitive, level | evaluated mesh (mirror applied) | trait; Blender's output as the oracle (`cage-evaluator`) | | Cage evaluator (Blender) | cage object at a declared level | evaluated mesh | exported fixtures (no Bevel) |
| Cutter lowering | cutter brush | closed cutter mesh | the kernel, per brush | | Brush lowering | kernel primitive or authored mesh | closed brush mesh | the kernel, per brush |
| Boolean | evaluated mesh, cutter mesh, `cut` or `split` | pieces, intersection loops with both sides' faces | trait; kernel chosen by the spike | | Boolean | evaluated mesh, brush mesh, mode | pieces with per-corner provenance | trait; boolmesh or manifold-csg |
| Weld | pieces, loops, the two surfaces' curvature | welded pieces, loop edges with bevel weight | pure mesh math | | Weld | pieces, provenance, curvature along the loop | welded pieces, loop edges with bevel weights | pure mesh math |
| Kernel | kernel part | mesh with per-face brush and surface ids | trait | | Extension (Blender) | cage, brush collection, Cuts rows | result object's mesh | the Rust entry point, called headless |
| Scorer | two meshes | the bar's numbers | pure mesh math, no Blender | | Scorer | two meshes | the bar's numbers | pure mesh math, no Blender |
| Research generators | a reference (scan or SDF program) | candidate cage | port; never a production writer | | Research generators | a reference | candidate cage | port; never a production writer |
| Brokkr bridge | intents from `brokkr-ctl` | receipts, cage reads, objects in the ship file | directory store or loopback, per `blender-transport` | | Brokkr bridge | intents from `brokkr-ctl` | receipts, commits, exported fixtures | per `blender-transport` |
## The hand cage ## The hand cage
**What it is** (`docs/research/dexter-quiet-cage/` @ d426f86, note @ 4b55c58): half hull of 29 vertices `docs/research/dexter-quiet-cage/` @ d426f86 (note @ 4b55c58): half hull of 29 vertices and 25 faces (19
and 25 faces (19 quads, 6 triangles); about 50 faces mirrored. Nine creases form one chain that the quads, 6 triangles); nine creases that the mirror closes into one loop round the wing rim. At level 3 it
mirror closes into a loop round the wing rim. At level 3 it evaluates to 3,154 vertices and 3,152 quads, evaluates to 3,154 vertices and 3,152 quads with 31 irregular vertices and no UVs. It is the production
with 31 irregular vertices and no UVs. Against the scan (vertex to nearest vertex, % of the 1.492 primary form and the yardstick research generators are scored against (`primary-form-is-the-hand-cage`),
diagonal): cage to scan mean 0.88, p95 2.04, max 3.11; scan to cage mean 1.29, p95 4.12, max 6.03. with the cage bar unchanged from r3: at most about 200 faces, at most 24 % triangles, closed creases, and
Those numbers mix her declared liberty with detail the cage omits by design. They describe the a watertight level-3 limit mesh with at most 62 irregular vertices.
reference; they are not a bar any production output is held to.
**It is the production primary form, not only the yardstick.** Production fidelity is by construction:
away from detail loops, the shipped part is the cage's limit surface.
**Research generators are scored against it** (`primary-form-is-the-hand-cage`). A candidate's
evaluated limit surface is compared with the hand cage's (Mirror, limit, no Bevel) vertex to nearest
vertex both ways, at half to double 3,154 vertices, and by three-axis silhouette IoU. Every measurement
reports the candidate's source against its reference and the candidate cage against its own source
separately, besides the end-to-end number; run 7 lost a spike to an unattributed number. The scan is the
reference only for the hand cage's own recorded liberty. A candidate is interesting when it is no worse
than the hand cage's own spread and meets the cage bar: at most about 200 faces (4x), quads and
triangles only with at most 24 % triangles, closed creases, and a watertight level-3 limit mesh with at
most 62 irregular vertices. Meeting the bar makes a candidate committable as a cage. It gates nothing
else.
## Not yet known (owed before or during the next cuts) ## Not yet known (owed before or during the next cuts)
- **The weld rule's behaviour on real geometry.** It has never been run. The spike brief is - **The flat seam's last needles.** Round 3 kept the seam on the plane and reached crack 0, but a
`spike-boolean-weld.md` (Self's scratch); its measures and failure cases decide whether the rule ships boolean-inserted seam vertex almost on a hull vertex leaves a 0.04 to 0.7 deg triangle and
as stated, needs a tiebreak, or needs the cutter tessellated to the hull's density. bevel-clamped edges, so her uniform Longinus groove is not reached. Round 4 slides such vertices onto
- **Which boolean kernel:** Manifold through `manifold-csg` (Apache-2.0, C++ underneath, with provenance the seam within the hull's surface. On a flat split those are the owner's own vertices, and her words
and its own degenerate cleanup), boolmesh (pure Rust, MPL-2.0, released 2026-10-11, 0 % doc coverage), were "they survive"; a moved vertex survives in identity, not in position. Her eye on the round-4 render
or an extension of the crate's own kernel. The spike measures the first two; the crate's kernel is decides whether that reading holds.
planar-convex today. - **Add mode.** No union has been run. A union's loop is a concave edge; the same owner rule and guards
- **Who evaluates the cage** for the lowering: question `cage-evaluator`. apply, and the brush's outer faces are its own surfaces.
- **Split pieces' interior caps:** a through-cut of a closed hull leaves cross-section caps inside both - **Which boolean kernel.** boolmesh (pure Rust, MPL-2.0, 14 s build) and Manifold through manifold-csg
pieces. Whether they are kept (closed pieces, hidden triangles) or dropped (open pieces) depends on how (Apache-2.0, C++ fetched at build, 89 s) gave identical output on all 11 cases. A per-platform Blender
Bevel and Weighted Normal treat the open boundary. The spike probes it. wheel favours pure Rust; Imagination's lean is boolmesh behind the port, decided by the first cut, not
- **How a `cage` part and a `kernel` part meet** on one hull. Under r3 a union with the same boolean and here.
weld is the natural candidate, but nothing has measured it. - **The extension wheel's build.** Per-platform wheels for the Extensions platform (windows-x64,
- **Text for a cage part.** It prints as a polyhedron-like `subdivision_cage(points, faces, creases, macos-arm64, linux-x64 at least), Blender's pinned Python, GPL-3.0-or-later for the extension: no cut
mirror)`. OpenSCAD would render the cage's control polyhedron, not its limit surface, so cage parts sit has built one.
outside the "OpenSCAD renders it the same" half of `text-round-trips`, as smooth-min parts did in r2. - **How a `cage` part and a `kernel` part meet** on one hull: presumably `add` with the same weld;
unmeasured.
- **Text for a cage part and its detail list.** `subdivision_cage(points, faces, creases, mirror, uv)`
followed by the ordered detail entries. OpenSCAD renders neither the limit surface nor the weld, so cage
parts and detail modes sit outside the "OpenSCAD renders it the same" half of `text-round-trips`.
- **UVs on created faces.** Her unwrap rides through Subdivision and the booleans as UV0; split caps and
trimmed brush walls need placement that keeps UV0 unique (`aetheria-release:ruling:hull-paint-mask-texture`
samples the livery mask on UV0).
## Research it rests on ## Research it rests on
All in GameCult.Geometry.Csg `docs/research/` on `eureka/brush-tree`: All in GameCult.Geometry.Csg `docs/research/` on `eureka/brush-tree` unless named:
- `dexter-quiet-cage/` @ 4b55c58: the reference cage, the primary-form note, her screenshots (cage files - `spike-boolean-weld.md` on `spike/boolean-weld` @ db2c162: rounds 1 to 3, the along-loop owner, the
@ d426f86). flat seam on the plane, the cap CDT, local ownership with corners kept, the kernel comparison.
- `nondestructive-weld-in-blender.md` @ 19e2f9b: modifier routes, Geometry Nodes limits, Hard Ops and
Boxcutter cleanup (distance welds, no ownership rule), Manifold timings in Blender.
- `boolean-cleanup-prior-art.md` @ 34cccf3: no named precedent for the rule; Manifold's collapse guard;
ownable kernels.
- `detail-on-subd-prior-art.md` @ c513992: cut into the evaluated mesh keeps the cage independent.
- `cage-connectivity-prior-art.md` @ 492f83a: no open method reaches a coarse quad cage at this quality. - `cage-connectivity-prior-art.md` @ 492f83a: no open method reaches a coarse quad cage at this quality.
- `boolean-cleanup-prior-art.md` @ 34cccf3: no named precedent for the weld rule; Manifold's collapse - `dexter-quiet-cage/` @ 4b55c58, `sdf-authoring-text-prior-art.md` @ 6a575d2,
guard; Adaptive Mesh Booleans' failure modes; ownable kernels. `subd-cages-mixed-hulls-and-open-kernels.md` @ 390db63, `shippable-bar/`, `mesh-probe-run1/` to
- `detail-on-subd-prior-art.md` @ c513992: cut into the evaluated mesh is the only option that keeps the `mesh-probe-run7-im-field/`, `openscad-evaluators-and-csg-export.md`,
cage independent and regenerable; support loops grow the cage. `primitive-seams-and-sdf-bevel-meshing-prior-art.md`, `brush-surfaces-and-sdf-bricks-prior-art.md`,
- `sdf-authoring-text-prior-art.md` @ 6a575d2: no SDF tool round-trips a typed tree through text. `octahedral-impostors-prior-art.md`: as in r3.
- `subd-cages-mixed-hulls-and-open-kernels.md` @ 390db63: limit evaluation, closest point, no cheap
bound.
- `shippable-bar/`, `mesh-probe-run1/` to `mesh-probe-run7-im-field/`,
`openscad-evaluators-and-csg-export.md`, `primitive-seams-and-sdf-bevel-meshing-prior-art.md`,
`brush-surfaces-and-sdf-bricks-prior-art.md`, `octahedral-impostors-prior-art.md`: as in r2.