Show HN: ロボティクスにはより良いCADが必要だと考え、B-repカーネルと3,487件のテストを書きました
こんにちは、HNの皆さん。Tonyです。Springcraftの共同創業者で、当社ではロボット部品のCADモデリングを数多く手がけています。チームが既存のカーネルの制約に繰り返し直面したため、新しいB-repカーネルと、カーネルに依存しない包括的なB-repコンフォーマンステストスイートを書くことにしました。どちらもMITライセンスで本日公開しています。
カーネルのspringrepは、依存関係のない安全なRustで書かれています。高度なフィレット、スイープ、ロフト、シェル、オフセット、STEP、正確な測定とクエリなど、当社の機械CADに必要な幅広い機能を網羅しています。Claude Codeのおかげで実現可能になりましたが、正しく仕上げるには多くの時間と注意が必要でした。
テストスイートのbrep-conformanceには、カーネル間で共通するモデリング操作(ブーリアン、フィレット、面取り、シェル、オフセット、スイープ、ロフト、STEP、そして期待値が閉形式と厳密な幾何から得られるクエリ)をカバーする3,487件のケースがあります。自社テストでは見つけられなかった数百件のバグ、エッジケース、ホットスポットを検出し、現在はspringrepがすべてパスしています。また、人気のあるオープンソースカーネルいくつかでも実行しており、誰でも自分のカーネルで実行できます。これは初版なので、テストやアダプタに間違いが含まれている可能性は確実にあります。修正、プルリクエスト、新しいカーネルへの対応は歓迎します。
カーネル:https://github.com/springcraft-ai/springrep
コンフォーマンステストスイート:https://springcraft-ai.github.io/brep-conformance/
英語から翻訳. 原文を表示
Hey HN, I’m Tony. I’m a co-founder of Springcraft, where we have been doing a lot of CAD modeling for robot parts. Our team kept running into limitations with existing kernels, and so I decided to write a new B-rep kernel and a new comprehensive, kernel-agnostic B-rep conformance test suite. Both are available today under MIT licenses.
The kernel, springrep, is written in safe Rust with no dependencies. It covers a broad range of our mechanical CAD needs, including advanced fillets, sweeps, lofts, shells, offsets, STEP and exact measurements and queries. Claude Code made it feasible to write this, but it took a lot of time and care to get it right.
The test suite, brep-conformance, has 3,487 cases covering the modeling operations common across kernels: booleans, fillets, chamfers, shells, offsets, sweeps, lofts, STEP, and queries with expected answers coming from closed forms and exact geometry. It caught hundreds of bugs, edge cases, and hot spots in springrep that our own tests had missed, and now springrep passes all of it. We’ve also run it on a few popular open-source kernels and anyone can run it on theirs. This is the first version, so there are surely mistakes in the test and adapters. Corrections, pull requests, and new kernels are welcome.
kernel: https://github.com/springcraft-ai/springrep
conformance suite: https://springcraft-ai.github.io/brep-conformance/
このスレッドをフォロー
コメントが付いたときのメール。アカウントは不要です。
ニュースレター
ロボットに関するあらゆる最新情報を得るために、無料ニュースレターに登録してください。