← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

LuaCAD: Parametric CAD Scripting Tool Using Lua and Rust

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • LuaCAD enables parametric CAD modeling with Lua scripts.
  • Exports models to 3MF, STL, OBJ, PLY, OFF, AMF, SCAD, or PNG.
  • Uses a Rust engine with Lua 5.4 for CSG operations.
  • Offers a CLI and a GUI desktop application with live 3D preview.

Introduction to LuaCAD

LuaCAD is a new tool for parametric computer-aided design (CAD) that allows users to create 2D and 3D models by writing scripts in the Lua programming language. This approach provides a programmatic way to define geometric shapes and structures, offering precise control over model parameters.

Technical Architecture and Features

The system embeds Lua 5.4 within a Rust engine, which handles constructive solid geometry (CSG) operations directly via the Manifold library or generates OpenSCAD code for external rendering. LuaCAD supports exporting models to multiple formats including 3MF, STL, OBJ, PLY, OFF, AMF, and SCAD, and can also render models directly to PNG images. It includes features like operator overloading for natural CSG syntax, similar to other CAD software.

LuaCAD offers both a command-line interface (CLI) for script execution and conversion, and a graphical user interface (GUI) desktop application, LuaCAD Studio, which provides a live 3D preview of models. The tool also supports the Belfry OpenSCAD Library v2 (BOSL2) through a reimplementation within LuaCAD, allowing rendering and export without requiring OpenSCAD or BOSL2 installations.

Comparison with OpenSCAD

LuaCAD positions itself as an alternative to OpenSCAD, highlighting Lua's advantages such as more power, consistency, and speed compared to OpenSCAD's scripting language. Lua's embeddability is also noted as a benefit. The project provides examples demonstrating how LuaCAD's syntax for defining models compares to equivalent OpenSCAD code, showing a more concise structure.

Installation and Usage

Users can install LuaCAD via Cargo for both the CLI (`luacad`) and the GUI (`luacad-studio`). Building from source requires Rust, a C++ compiler, and CMake. The CLI supports various commands for converting models, watching files for changes, rendering to PNG, printing model information, linting scripts, and executing scripts. The `convert` and `watch` commands infer output formats from file extensions, with options to override or use an installed OpenSCAD binary for export.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 15

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

LuaCAD is a new parametric CAD tool that allows users to define 2D and 3D models using Lua scripts, offering export options to various formats like 3MF, STL, and OBJ. It provides an alternative to OpenSCAD with a more powerful and consistent scripting language, running on a Rust engine.