ricosjp/truck — reverse-engineered prompt
Reverse engineered prompt
Build me an open source Rust CAD kernel called truck. I want it to help developers create, combine, process, mesh, and display precise 3D shapes without crashing or depending on old CAD code.
It should support curves, surfaces, solids, polygon meshes, boundary representation, and NURBS. Include modeling tools that connect geometry and topology, plus boolean operations for solids and tessellation so shapes can become meshes for rendering. Add a WebGPU based viewer layer so examples can show the shapes on screen, and include a JavaScript wrapper so the core can eventually be used from web projects too.
Please organize it as small reusable Rust crates instead of one huge app. Include working examples, especially a simple rotate objects demo, and make sure the repo builds with Cargo after initializing submodules. Look up current Rust and WebGPU docs online if you need to.
Want more depth? Deep Reverse