|
4 | 4 |
|
5 | 5 | Track which portions of resulting solids come from which sketch extrude regions, including after union/subtract, while keeping storage compact and spline-ready. |
6 | 6 |
|
| 7 | +## Execution Status (2026-03-02) |
| 8 | + |
| 9 | +Completed: |
| 10 | + |
| 11 | +1. Plan authored and staged into phased implementation. |
| 12 | +2. Debug visualization toggles added to preferences and wired to solids runtime: |
| 13 | +3. Boundary loop rendering from GeometryStore. |
| 14 | +4. Segment rendering from GeometryStore. |
| 15 | +5. Segment/surface/region ID labels (overlay text). |
| 16 | +6. Fixed world/local debug overlay transform bug: |
| 17 | +7. GeometryStore points are world-space; line geometry parented under solids root must convert world -> root local because `space.WORLD` is rotated -90deg on X. |
| 18 | + |
| 19 | +In progress: |
| 20 | + |
| 21 | +1. Converting this plan into code-level milestone execution with strict acceptance checks. |
| 22 | + |
| 23 | +Next up: |
| 24 | + |
| 25 | +1. Add first `surface_patch_id` selection plumbing (read-only pass-through). |
| 26 | +2. Thread Manifold relation metadata through kernel adapters. |
| 27 | +3. Start mixed-face partition scaffold from seeded `surface_patches`. |
| 28 | + |
7 | 29 | ## Decisions |
8 | 30 |
|
9 | 31 | 1. Primary provenance is `boundary/region/surface-patch`, not raw triangle ownership. |
@@ -120,6 +142,7 @@ This enables deterministic attribution from boolean output back to input generat |
120 | 142 |
|
121 | 143 | 1. Add `surface_patches` schema and runtime index container. |
122 | 144 | 2. Introduce generic segment schema (`kind + geom`) with current line/arc emitters. |
| 145 | +3. Add compatibility normalizer for older docs (missing `surface_patches`). |
123 | 146 |
|
124 | 147 | ### Phase 2: Kernel Metadata Plumbing |
125 | 148 |
|
@@ -163,6 +186,39 @@ Regression guardrails: |
163 | 186 | 1. No persisted triangle tables in doc snapshots. |
164 | 187 | 2. No schema changes required to add spline segment kind later. |
165 | 188 | 3. Selection never reports mixed-source face entities. |
| 189 | +4. Any debug/runtime geometry under solids root must explicitly convert GeometryStore world coordinates to root-local coordinates. |
| 190 | + |
| 191 | +## Implementation Checklist |
| 192 | + |
| 193 | +Phase 1: |
| 194 | + |
| 195 | +1. Done: update `src/void/api/geometry_store.js` schema to include `surface_patches` and runtime topology patch map container. |
| 196 | +2. Done: extend `buildGeometryStoreSnapshot()` in `src/void/api/solids.js` to emit seeded `surface_patches` per face-loop with source-region candidate fields. |
| 197 | +3. In progress: keep current face-key canonical mapping intact while adding optional patch ID fields. |
| 198 | + |
| 199 | +Phase 2: |
| 200 | + |
| 201 | +1. Update `src/void/solid/kernel.js` mesh conversion to preserve manifold relation fields: |
| 202 | +2. Input pass-through where provided (`runOriginalID`, `runIndex`, `faceID`, etc.). |
| 203 | +3. Output pass-through into rebuild intermediate structures. |
| 204 | +4. Add worker payload support for relation arrays when present. |
| 205 | + |
| 206 | +Phase 3: |
| 207 | + |
| 208 | +1. Implement mixed-source detection in `src/void/solid/rebuild.js`. |
| 209 | +2. Add per-surface local partition pass and emit patch boundaries. |
| 210 | +3. Assign one canonical `source_region_id` per patch. |
| 211 | + |
| 212 | +Phase 4: |
| 213 | + |
| 214 | +1. Extend selection resolver and solids hit mapping to prefer patch IDs over raw face IDs. |
| 215 | +2. Add properties/tree hover mapping from extrude profile -> patch IDs. |
| 216 | +3. Remove coarse fallback once parity checks pass. |
| 217 | + |
| 218 | +Phase 5: |
| 219 | + |
| 220 | +1. Add deterministic integration tests for union/subtract split-face provenance. |
| 221 | +2. Remove temporary migration branches and finalize docs. |
166 | 222 |
|
167 | 223 | ## Acceptance Criteria |
168 | 224 |
|
|
0 commit comments