Skip to content
AI-Ready Docs
/llms.txt/llms-mcp.txt

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 diveWhat you explore interactively
Booleans of curved solidsSurface-surface intersection marching, 2D face-domain arrangements, ray classification, and stitching (6 interactive figures)
Exact arithmetic for planar solidsBinary64 exact fractions, orientation predicates, face cutting, and planar retry
Booleans of upright extrusionsHeight intervals, 2D section Booleans, slab merging, and wall/cap reconstruction
What makes a B-rep validB-rep topology records, Euler–Poincaré invariants, and strict geometric checks
Tolerances and numbersBinary64 spacing, ε multiples, vertex merging, and recorded tolerance policy
How results are checkedConformance suites, independent oracles, property/fuzz testing, and fingerprints

2. NURBS, Fillets, Sweeps & Specialty Geometry ​

Deep diveWhat you explore interactively
NURBS curves and surfacesBasis functions, rational weights, knot insertion, subdivision, and degree elevation
Fillets: the rolling ballClosed-form sections, rolling-ball spine Newton solver, tool lofting, and refusals
Lofts, sweeps and revolvesRational arc revolves, draft, rotation-minimising frames, and multi-section lofts
Closest points on curves and surfacesGauss–Newton surface projection and golden-section curve search
Where a curve meets a planeBernstein distance polynomials, hull culling, turning points, and bisection
Subdivision surfaces as exact B-splinesCatmull–Clark cages lowered to bicubic B-splines and G1 extraordinary caps
Threads, gears and springsExact involute gear flanks, contact ratios, helical threads, and springs
Sheet metal: bends and the flat patternNeutral layer, K-factor, bend allowance tables, B-rep unfolding, and DXF
Text from font outlinesStatic TrueType glyph outlines converted to exact parametric solids

3. 2D Projections, Tessellation, Meshes & Exchange ​

Deep diveWhat you explore interactively
Hidden lines for drawingsAnalytic silhouettes, exact projection, visibility intervals, and bisection (@barocss/cad-projection)
Tessellating a B-rep for displayShared edge sampling, adaptive density, ear clipping, and curved patch triangulation
Volume, centroid and inertiaDivergence theorem, Green/Pappus closed forms, Gauss–Legendre patch integration, and principal axes
Meshes, native tools and the BVHMixed mesh/native Booleans, T-junction mending, and BVH acceleration
Mesh processing: simplify, repair, offsetQuadric decimation, hole filling, voxel/shell offsets, and clearance queries
Reading STEP and IGESISO 10303-21 Part 21 parsing, seam/orientation resolution, and IGES NURBS import

4. Constraints, Persistent Naming, Assemblies & GPU ​

Deep diveWhat you explore interactively
Solving sketch constraintsConstraint residuals, damped Newton steps, degrees of freedom, and arcs
Names that survive editsPersistent face/edge lineage (TNP v2), #k disambiguation, and reference recovery
Assemblies, robots and drawingsMate solver, joint trees, damped IK, loop closure, and auto-dimensioning
Machining, printing and moulding checksExact draft normals, undercuts, parting lines, print overhangs, and 3-axis tool access
Rendering a model on the GPUWebGPU render passes, GGX/Smith/Schlick PBR, shadow maps, picking, and compute analyses