3D Extension Evaluation Report¶
Historical evaluation, not a current acceptance report. Counts and numbers below describe the original fixtures and have not been regenerated here. The current implementation contract qualifies analytical exactness on correct sampled classification and finite primitive formulas; it does not guarantee arbitrary-pair accuracy.
Summary¶
Historical verdict: PASS on the selected fixtures.
The 3D extension extends the concept proof to 3D with 8 primitive types, 3 Boolean operations, and a unified stratum dispatch architecture. Dispatch accepts heterogeneous primitive pairs, but that interface coverage is not a general accuracy result.
| Gate | Criterion | Result |
|---|---|---|
| 1a | Bounded pair analytical exact | PASS |
| 1b | Intersecting stratum precision | PASS |
| 2 | Boolean operation coverage | PASS |
| 3 | Primitive coverage | PASS |
| 4 | Stratum generalization | PASS |
| 5 | Design principle 3D inheritance | PASS |
Gate 1a: Bounded Pair Analytical Exact¶
Criterion: Bounded primitive pairs achieve analytical exact gradient in disjoint and contained strata.
Result: PASS
Validated with Sphere-Sphere subtract at resolution=64:
| stratum | gradient | error |
|---|---|---|
| disjoint d/d(r_block) | 50.265482 | 0.000000% |
| disjoint d/d(r_hole) | 0.000000 | exact zero |
| contained (A in B) | 0.000000 | exact zero |
| contained (B in A) d/d(r_big) | 50.265482 | 0.000000% |
| contained (B in A) d/d(r_small) | -1.130973 | 0.000000% |
5 of 6 measurement points are machine-epsilon exact.
Enabled by per-primitive volume() method returning analytical formulas
(4/3*pi*r^3 for Sphere, 2*pi^2*R*r^2 for Torus, etc.) and jax.grad
applied to these formulas in the stratum dispatch backward pass.
Gate 1b: Intersecting Stratum Precision¶
Criterion: Method (C) outperforms Method (A) in the intersecting stratum.
Result: PASS
| dimension | Method (C) error | Method (A) error | ratio |
|---|---|---|---|
| 2D (res=128) | 0.14% | 0.89% | 6.4x |
| 3D (res=128) | 0.22% | not measured | comparison unavailable |
The selected 2D sweep reported approximately fourfold error reduction when resolution doubled (64/128/256/512). This does not establish a universal second-order rate, near-contact accuracy, or a 3D advantage over Method A.
Gate 2: Boolean Operation Coverage¶
Criterion: union, subtract, and intersect operations all functional with stratum dispatch.
Result: PASS
All three operations use _boolean_measure_with_dispatch with operation-specific
per-stratum gradient rules (12 cells: 3 ops x 4 strata). Each cell has a defined
gradient formula documented in the source.
Tested with 39 Boolean tests across homogeneous and heterogeneous primitive pairs including Sphere+Cylinder, Sphere+Plane, Cylinder+Plane combinations.
Gate 3: Primitive Coverage¶
Criterion: All spec primitives implemented with SDF, parameters, and volume.
Result: PASS
| Primitive | Bounded | volume() | SDF | jit/vmap/grad | tests |
|---|---|---|---|---|---|
| Disk | Yes | pi*r^2 | 2D circle | pass | 6 |
| Sphere | Yes | 4/3pir^3 | 3D sphere | pass | 8 |
| Cylinder | No | inf | infinite axis | pass | 9 |
| FiniteCylinder | Yes | pir^2h | capped axis | pass | 10 |
| Plane | No | inf | half-space | pass | 9 |
| Cone | No | inf | apex+angle | pass | 9 |
| Torus | Yes | 2pi^2R*r^2 | major+minor | pass | 10 |
| Box | Yes | 8hxhy*hz | axis-aligned | pass | 11 |
168 tests total, all passing.
Gate 4: Stratum Generalization¶
Criterion: Stratum detection works for arbitrary primitive pairs without per-pair code.
Result: PASS
_detect_stratum_generic uses SDF evaluation on grid to classify
disjoint/intersecting/contained(A-in-B)/contained(B-in-A) for any
primitive pair. No parameter-dependent logic. New primitives get
stratum dispatch automatically.
Validated with 6 heterogeneous pair tests (Sphere+Cylinder, Sphere+Plane, Cylinder+Plane) covering union, subtract, intersect, and gradient computation.
Gate 5: Design Principle 3D Inheritance¶
Criterion: Concept proof Method (C) design principles are maintained in 3D.
Result: PASS
The concept proof established: stratum label dispatch in custom_vjp backward pass.
The 3D extension preserves this in _boolean_measure_with_dispatch:
- Forward: exact SDF Boolean + heaviside indicator on grid
- Backward: stratum label from _detect_stratum_generic, per-stratum gradient dispatch
- Disjoint/contained: analytical volume() via jax.grad
- Intersecting: straight-through estimator with grid-adaptive beta
Key findings during the 3D extension:
- Thin sigmoid applied uniformly is a Method (A) variant (discovered and corrected)
- Heterogeneous PyTree pairs need independent jax.tree.map calls
- Drilling operations (penetrating cylinders) are structurally always in the intersecting stratum
Drilling Demonstration¶
Sphere - FiniteCylinder subtract with optimization convergence:
| lr | final hole radius | volume error |
|---|---|---|
| 0.001 | 0.753 | 1.40% |
| 0.003 | 0.758 | 1.40% |
The reported drilling configuration is intersecting (cylinder penetrates sphere), so analytical exactness does not apply. The separate 2D comparison does not establish a sixfold accuracy advantage for this drilling case.
Recommendation¶
The original launch recommendation was based on these fixtures. It is not a current release gate or a proof of exactness in three quarters of parameter space. Use the current theory and numerical scope when interpreting these historical results.