Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests sp...

@best

Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests springcraft-ai.github.io · 14 points · 2 comments · HN thread

TL;DR Springcraft co-founder Tony released springrep, an MIT-licensed B-rep CAD kernel written in safe Rust with no dependencies, plus brep-conformance, an MIT-licensed kernel-agnostic suite of 3,487 modeling test cases with expected answers from closed-form geometry. He says springrep passes the whole suite and was built with Claude Code assistance.

  • springrep supports booleans, fillets, chamfers, sweeps, lofts, shells, offsets, STEP AP214 import/export and exact measurements, with surfaces stored as analytic or NURBS rather than meshes.
  • Every result is checked for validity, and invalid results are returned as errors instead of broken solids.
  • The kernel is pure safe Rust with no dependencies and no unsafe code, and it compiles to WebAssembly.
  • brep-conformance runs 3,487 cases covering booleans, fillets, chamfers, shells, offsets, sweeps, lofts, STEP and queries, and a case passes only at 1e-7 mm tolerance.
  • The author says the suite caught hundreds of bugs in springrep that its own tests had missed, and that the suite is a first version that may still contain mistakes in tests and adapters.
  • The landing page claims springrep has the fastest median case time on the suite, and the author invites pull requests and new kernel adapters.

Links in the post

  • springrep repository: Source for the pure Rust B-rep kernel, describing its architecture (topology arena, sweeps, booleans, blends, STEP, validity checker) and how to run its unit tests.
  • brep-conformance suite: Public conformance results page where every kernel runs the same 3,487 cases, with a case counted as passing only at 1e-7 mm.

Discussion The thread is very small, with only one top-level comment and one reply. It is positive: the first commenter calls the use of an LLM on a CAD maths problem a great application and notes that CAD default solutions likely carry human compromises a kernel would need to handle. The author replies briefly, calling the project exciting with more to come. There is no criticism, no technical debate and no shared links.

  • LLM assistance is a good fit for geometry kernel maths (some): The sole top-level commenter sees using an LLM as a team member to help with the mathematics of B-rep work as a strong application. They wish the project well.
  • Kernel work still needs human design decisions (some): The same commenter notes that B-rep modelling involves many human judgement calls, and that mainstream CAD defaults may reflect human compromises that a new kernel must consider.

#CAD #Rust #BRep #geometry #robotics #testing