hn.today

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

springcraft-ai.github.io21 points2 comments
Screenshot of Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests

Springrep is an open-source boundary-representation CAD kernel written in Rust, aimed at robotics and other applications that need dependable exact geometry rather than mesh approximations. It supports Boolean operations, fillets, sweeps, measurement, and STEP export, using analytic or NURBS surfaces to calculate properties such as volume and area. Its central design claim is that CAD operations should either return a valid solid or a clear error: every result is checked so invalid geometry does not silently propagate into later work. The project describes its geometry as accurate to 1e-7 mm and reports 3,487 tests. It is MIT-licensed, has no dependencies or unsafe code, and can compile to WebAssembly.

The site backs its performance and accuracy claims with brep-conformance, a public benchmark whose expected results come from closed-form mathematics rather than another CAD kernel. It says Springrep passes the suite’s strict tolerance checks and has the fastest median case time, with results available for comparison. A Rust example builds a 60-by-40 mm plate, cuts a circular bore, adds a 1.5 mm fillet, measures the resulting solid, and exports it as a STEP file; the stated output is a volume of 18,276.001643 mm³, an area of 6,452.128187 mm², and eight faces. Users are advised to propagate operation errors, identify fillet edges by adjacent face names, and check each new solid.

Read on springcraft-ai.github.io2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Sarasa Gothic Mono

Sarasa Gothic Mono

Sarasa Gothic Mono is a free, open-source monospace typeface built for multilingual programming, combining Source Han Sans and Iosevka. It offers coding ligatures, pixel-friendly hinting, condensed characters, and support for Latin, Cyrillic, Greek, and East Asian scripts. (picaq.github.io)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.