Kernel Engineering Deep Dive
BaroCSS CAD is not a black-box C++ binary — every B-rep Boolean, rolling-ball fillet, NURBS evaluator, exact HLR projection, and WebGPU pass is open TypeScript. Across 26 deep dives and 77 interactive Vue algorithm visualizers, each page walks through the exact formulas, tolerances, source files, and verification tests from the live kernel.
Use Play / Pause, arrow keys, or step numbers on any interactive diagram. With reduced motion enabled, every stage displays still.
1. Exact Booleans, Topology & Numerical Foundations
| Deep dive | What you explore interactively |
|---|---|
| Booleans of curved solids | Surface-surface intersection marching, 2D face-domain arrangements, ray classification, and stitching (6 interactive figures) |
| Exact arithmetic for planar solids | Binary64 exact fractions, orientation predicates, face cutting, and planar retry |
| Booleans of upright extrusions | Height intervals, 2D section Booleans, slab merging, and wall/cap reconstruction |
| What makes a B-rep valid | B-rep topology records, Euler–Poincaré invariants, and strict geometric checks |
| Tolerances and numbers | Binary64 spacing, ε multiples, vertex merging, and recorded tolerance policy |
| How results are checked | Conformance suites, independent oracles, property/fuzz testing, and fingerprints |
2. NURBS, Fillets, Sweeps & Specialty Geometry
| Deep dive | What you explore interactively |
|---|---|
| NURBS curves and surfaces | Basis functions, rational weights, knot insertion, subdivision, and degree elevation |
| Fillets: the rolling ball | Closed-form sections, rolling-ball spine Newton solver, tool lofting, and refusals |
| Lofts, sweeps and revolves | Rational arc revolves, draft, rotation-minimising frames, and multi-section lofts |
| Closest points on curves and surfaces | Gauss–Newton surface projection and golden-section curve search |
| Where a curve meets a plane | Bernstein distance polynomials, hull culling, turning points, and bisection |
| Subdivision surfaces as exact B-splines | Catmull–Clark cages lowered to bicubic B-splines and G1 extraordinary caps |
| Threads, gears and springs | Exact involute gear flanks, contact ratios, helical threads, and springs |
| Sheet metal: bends and the flat pattern | Neutral layer, K-factor, bend allowance tables, B-rep unfolding, and DXF |
| Text from font outlines | Static TrueType glyph outlines converted to exact parametric solids |
3. 2D Projections, Tessellation, Meshes & Exchange
| Deep dive | What you explore interactively |
|---|---|
| Hidden lines for drawings | Analytic silhouettes, exact projection, visibility intervals, and bisection (@barocss/cad-projection) |
| Tessellating a B-rep for display | Shared edge sampling, adaptive density, ear clipping, and curved patch triangulation |
| Volume, centroid and inertia | Divergence theorem, Green/Pappus closed forms, Gauss–Legendre patch integration, and principal axes |
| Meshes, native tools and the BVH | Mixed mesh/native Booleans, T-junction mending, and BVH acceleration |
| Mesh processing: simplify, repair, offset | Quadric decimation, hole filling, voxel/shell offsets, and clearance queries |
| Reading STEP and IGES | ISO 10303-21 Part 21 parsing, seam/orientation resolution, and IGES NURBS import |
4. Constraints, Persistent Naming, Assemblies & GPU
| Deep dive | What you explore interactively |
|---|---|
| Solving sketch constraints | Constraint residuals, damped Newton steps, degrees of freedom, and arcs |
| Names that survive edits | Persistent face/edge lineage (TNP v2), #k disambiguation, and reference recovery |
| Assemblies, robots and drawings | Mate solver, joint trees, damped IK, loop closure, and auto-dimensioning |
| Machining, printing and moulding checks | Exact draft normals, undercuts, parting lines, print overhangs, and 3-axis tool access |
| Rendering a model on the GPU | WebGPU render passes, GGX/Smith/Schlick PBR, shadow maps, picking, and compute analyses |