AI News Feed
Market watch
Products & Applications

LuaCAD: A Parametric CAD Tool Scripted in Lua

A new Rust-based parametric CAD tool, LuaCAD, replaces OpenSCAD's scripting language with Lua.

LuaCAD models solids by leveraging Lua’s operator overloading for constructive solid geometry, allowing expressions such as a + b, a - b, and a * b. It ships with a command-line interface and a desktop application that includes a preview area and a text editor. The developer states that LuaCAD has completely replaced OpenSCAD in their own workflow and believes it provides a better experience for all use cases, while inviting feedback on any reasons it should not fully replace OpenSCAD.

The tool is implemented in Rust and uses the mlua library to execute Lua code. It relies on OpenCSG for fast and correct rendering of 3D models, the same library used by OpenSCAD, and uses Manifold to create manifold triangle meshes. LuaCAD also offers native support for all BOSL2 functions, implemented in Rust for better performance. At the time of the post, the Hacker News thread had 4 points and no comments.