Skip to content

Design Thesis

BRepAX investigates differentiable Boolean geometry alongside practical STEP/B-Rep evaluation. The research question is how local contact geometry and moving boundaries determine derivatives, and how to compute them without confusing a numerical surrogate with the intended CAD objective.

What Is Implemented

Method Current computation Limitation
A: smoothing Public 2D union API: smooth SDF composition and sigmoid measure integral Temperature, finite-domain, and discretization bias; public 3D dispatch is unimplemented
B: TOI Unimplemented Event-time sensitivity alone does not define a static gradient correction
C: relation dispatch Hard sampled forward value; primitive-volume derivatives or sigmoid STE backward Sampled relation detection and intersecting-gradient approximation
Experimental circular cut Analytic disk/rectangle measure and boundary-flux first derivatives Perpendicular extruded cut; no general CAD reconstruction
Experimental planar contact Positive one-sided volume response to a supplied rigid direction, including complete collections of opposing planar contacts Known patches or explicit convex-cell bodies with disjoint interiors; nonlinear in direction; finite edits require CAD validation
Experimental polyhedral translation Event-delimited, piecewise-cubic overlap volume, target positions and volume-range enclosures along one prescribed translation Explicit represented convex cells; host preparation fixes geometry and direction; no rotation or arbitrary STEP certification
Experimental design sensitivity Volume and event-position sensitivities for affine vertex families, plus local target-position sensitivity Fixed facet normals and translation velocity; one or two design controls in a conservative parameter region; first derivatives only inside numerically resolved open event intervals
Experimental event boundary Exact host values and one-sided responses across one supplied event-order exchange One design parameter, fixed normals and velocity, one isolated pair of events; no JAX boundary gradient or automatic boundary discovery
Experimental design search and continuation Discover isolated event-order exchanges from a regular design and search a bounded dimension/position domain with a checked edit and objective gap Explicit one-parameter fixed-normal families; unsupported frontiers and exhausted budgets remain unconfirmed; no source-CAD or selection-gradient guarantee

The stratification explanation defines the current contract and contact regularity. Exact primitive-volume derivatives in simple relations do not make Method C exact everywhere or solve moving intersection boundaries.

Contact Geometry Is the Mathematical Question

Point, line, and face contact can have different orders of area/volume change. Smooth sphere contact has a continuous first volume derivative, while positive-area planar contact can have different one-sided derivatives. Internal versus external contact alone does not determine the order, and changing the objective from volume to surface area changes the answer.

Four implementation labels are not a proved Whitney stratification. Contact sets and degeneracies need explicit analysis. Contact dynamics also does not establish a mathematical isomorphism with static Boolean differentiation: a trajectory has flow and reset rules that a static volume does not. The TOI discussion separates these contracts and explains why the previous static correction was invalid.

Finite motion asks more than the initial directional response. For a prescribed translation, polyhedral intersection vertices move affinely between geometric events, and the volume is a polynomial of degree at most three on each interval. This exposes finite overlap from edge/point contact even when the initial rate is zero. For rotation, higher terms depend on the full trajectory: compensating a pivot to preserve the initial velocity field does not preserve the finite path. The finite-response derivation separates these contracts and their established mathematical background.

An affine design family makes the polynomial coefficients and event positions depend on dimensions as well as step. Within a valid region, this connects changing-boundary volume derivatives to the position needed to maintain a target removal volume. Root existence, selection among several positions, and local sensitivity are separate calculations. Zero slopes, event boundaries and event-order bifurcations require separate analysis and lie outside the supported local inverse-sensitivity contract.

A separate host boundary evaluator handles one prescribed exchange with adjacent exact polynomials and explicit one-sided responses; it does not extend that local inverse formula.

Automatic continuation can discover those isolated exchanges from a regular design and connect their certified regions to bounded design search. It retains unknown regions in the global optimality assessment. This removes manual boundary placement within the restricted family; it does not establish a complete stratification. Even a geometrically valid family can outlive a chosen sufficient certificate, and certificate coverage need not be frame invariant.

Practical selection must distinguish a wrong ranking of the supplied finite actions from a candidate set that cannot reach the target. A few actual CAD observations can check and refine proposals, but absence of an observed target bracket does not establish that a target is unreachable. Equal probe counts, preparation costs, independent finite edits, and retained failures are needed to evaluate an improvement.

Three Distinct Numerical Questions

Question What must be distinguished
Locally constant objective An exact zero derivative versus a deliberately nonlocal exploration signal
Near-contact volume derivative Missed contact regions, smoothing, quadrature, and true one-sided behavior
Moving CAD boundaries A frozen-mesh derivative versus derivatives of regenerated geometry, trims, and topology

Smoothing may help exploration, but guarantees neither a useful gradient everywhere nor convergence to an unsmoothed optimum. A hybrid schedule remains a proposal.

AD through a fixed discretization differentiates that discretization. Shape calculus motivates accounting for moving boundaries; it does not remove frozen trim or connectivity assumptions. Bounded through-hole editing deliberately preserves clearance: its conservative edit budget is not a demonstrated physical contact event or topology-changing Boolean derivative.

Density projection, differentiable rendering, hybrid dynamics, and shape differentiation offer techniques with different objectives and assumptions. They do not establish universal convergence, a fixed bias direction, or uniqueness for BRepAX. For example, nvdiffrast antialiasing uses an approximate local pixel-coverage model; it is not an exact Boolean volume derivative.

Comparisons need independent geometric values and derivatives, matched initializations and budgets, and temperature/resolution sweeps. Check rigid-motion and unit-scaling laws for both values and gradients. Convergence on a selected fixture does not prove that gradient sign is always correct or that a frozen-mesh plateau has one universal cause. The historical concept proof identifies earlier conclusions that no longer describe the implementation.