Show HN: วงการหุ่นยนต์ต้องการ CAD ที่ดีกว่า เลยเขียน B-rep kernel และ 3,487 เทสต์ขึ้นมาเอง
สวัสดีทุกคนใน HN ผมชื่อ Tony เป็นผู้ร่วมก่อตั้ง Springcraft ซึ่งเราทำงานออกแบบ CAD ให้ชิ้นส่วนหุ่นยนต์มาตลอด ทีมของเราเจอข้อจำกัดของ kernel ที่มีอยู่เดิมบ่อยมาก จึงตัดสินใจเขียน B-rep kernel ใหม่ และ conformance test suite ใหม่ที่ครอบคลุมและไม่ผูกกับ kernel ใดโดยเฉพาะ ทั้งสองอย่างใช้งานได้วันนี้ภายใต้ MIT license
kernel ชื่อ springrep เขียนด้วย safe Rust ไม่มี dependency ใด ๆ ครอบคลุมความต้องการ CAD เชิงกลของเราอย่างกว้างขวาง รวมถึง fillet ขั้นสูง, sweep, loft, shell, offset, STEP และการวัดกับการค้นหาค่าที่แม่นยำ Claude Code ทำให้การเขียนสิ่งนี้เป็นไปได้ แต่ก็ต้องใช้เวลาและความใส่ใจมากพอสมควรกว่าจะทำให้ถูกต้อง
test suite ชื่อ brep-conformance มี 3,487 เคส ครอบคลุมการดำเนินการสร้างโมเดลที่ใช้ร่วมกันในทุก kernel ได้แก่ boolean, fillet, chamfer, shell, offset, sweep, loft, STEP และการค้นหา โดยคำตอบที่คาดหวังมาจากสูตรเชิงปิดและเรขาคณิตที่แม่นยำ มันจับบั๊ก เคสขอบ และจุดที่ต้องระวังใน springrep ได้หลายร้อยจุดที่เทสต์ของเราเองพลาดไป ตอนนี้ springrep ผ่านทั้งหมดแล้ว เรายังได้รันมันกับ kernel โอเพนซอร์สยอดนิยมบางตัว และใครก็รันกับ kernel ของตัวเองได้ นี่เป็นเวอร์ชันแรก จึงต้องมีข้อผิดพลาดในเทสต์และ adapter แน่นอน ยินดีรับ corrections, pull request และ kernel ใหม่ ๆ
kernel: https://github.com/springcraft-ai/springrep
conformance suite: 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/
ติดตามกระทู้นี้
อีเมลแจ้งเมื่อมีคนแสดงความคิดเห็น ไม่ต้องมีบัญชี
จดหมายข่าว
สมัครรับจดหมายข่าวฟรีของเราเพื่อติดตามทุกเรื่องเกี่ยวกับหุ่นยนต์