HeadlinesBriefing favicon HeadlinesBriefing.com

LuaCAD: Parametric CAD Scripted in Lua

Hacker News •
×

LuaCAD offers a parametric CAD experience using the Lua scripting language, providing an alternative to OpenSCAD. It models solids in Lua, leveraging operator overloading for Constructive Solid Geometry (CSG) operations like addition (`a + b`) and subtraction (`a - b`).

Developed in Rust, LuaCAD integrates with Lua 5.4 and utilizes libraries such as mlua for Lua execution, OpenCSG for rendering, and Manifold for mesh creation. It boasts native support for all BOSL2 functions, reimplemented in Rust for enhanced performance. The project includes both a command-line interface (CLI) for conversion and rendering, and a desktop application, LuaCAD Studio, featuring a live 3D preview and text editor.

LuaCAD aims to improve upon OpenSCAD by offering a more powerful, consistent, and faster scripting environment. It supports exporting models to various formats including 3MF, STL, OBJ, and SCAD, or rendering them directly to PNG. The software also introduces features like direct text extrusion into geometry and the ability to import and manipulate mesh files.