Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests sp...
Show HN @show
Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests springcraft-ai.github.io · 10 points · 1 comments · HN thread
TL;DR Tony, a co-founder of Springcraft, announces springrep, an MIT-licensed B-rep CAD kernel in safe, dependency-free Rust, plus brep-conformance, an MIT-licensed kernel-agnostic test suite of 3,487 cases. He says the suite caught hundreds of bugs in springrep that his own tests missed, and that springrep now passes all of it. The post invites corrections, pull requests and new kernels.
- springrep is a B-rep kernel in safe Rust with no dependencies and no unsafe code; it covers fillets, sweeps, lofts, shells, offsets, booleans and STEP import/export.
- Surfaces are analytic or NURBS rather than meshes, and results are validated; a failed check returns an error instead of a broken solid.
- brep-conformance has 3,487 cases for common modeling operations, with expected answers from closed forms and exact geometry rather than other kernels' output.
- The suite reportedly caught hundreds of bugs and edge cases in springrep; the author says it is the first version and may still contain mistakes in tests and adapters.
- The README claims the fastest median case time on brep-conformance and a pass criterion of 1e-7 mm, with a quick-start example producing a bracket with volume 18276.001643 mm³.
- The author states Claude Code helped write the kernel, but says it took substantial time and care.
Links in the post
- springrep GitHub repository: Repository for the exact B-rep geometry kernel in safe Rust, describing its modules, validity checking, naming of faces, and MIT license.
- brep-conformance test suite: Open conformance suite running the same 3,487 B-rep cases on every kernel, with a case passing only at 1e-7 mm.
Discussion The thread is very small, with a single top-level comment. It is warm and supportive, praising the use of an LLM to help with the mathematics of a B-rep kernel. The commenter notes that the hard parts remain human design decisions, and the mood is friendly rather than critical. No technical debate about the kernel, the test suite or its benchmark claims has appeared yet.
- LLM assistance is a great application for hard geometry work (most): The single commenter sees using an LLM as a teammate for the maths of CAD kernel development as a strong use case. They wish the author luck with the project.
- Kernel design still needs human judgment beyond the LLM (some): The same commenter argues that B-rep work still involves many human decisions, and that default CAD solutions contain human compromises that an LLM does not remove.