Show HN: LuaCAD – Parametric CAD Scripted in Lua

LuaCAD models solids in Lua rather than the OpenSCAD language, with operator
overloading for CSG (`a + b`, `a - b`, `a * b`).

It ships with a CLI and a desktop app, including a preview area and a text editor.

I've always been a big fan of OpenSCAD, but the SCAD language itself is unfortunately quite cobbled-together and is a very poorly designed programming language.

LuaCAD takes all the good parts of OpenSCAD and combines them with one of the best scripting languages. It has now completely replaced OpenSCAD for me, and I think it provides a better experience than OpenSCAD for all use cases. I'd love to hear any reasons why LuaCAD shouldn't fully replace OpenSCAD!

It’s fully open source and you can find the repo here: https://github.com/ad-si/LuaCAD

Tech stack:

- It's implemented in Rust and uses mlua (https://github.com/mlua-rs/mlua) to execute the Lua code.

- Uses OpenCSG (https://opencsg.org) for fast and correct rendering of the 3D models (like OpenSCAD)

- Uses Manifold (https://github.com/elalish/manifold) to create the manifold triangle meshes

- Native support for all BOSL2 functions (i.e. implemented in Rust for better performance)




Comments URL: https://news.ycombinator.com/item?id=49301215


Points: 45


# Comments: 8

guid

https://news.ycombinator.com/item?id=49301215

source_url

https://luacad.ad-si.com/

author_name

adius

id: 5779
uid: UE1ct
insdate: 2026-08-14 20:05:33
title: Show HN: LuaCAD – Parametric CAD Scripted in Lua
additional:

LuaCAD models solids in Lua rather than the OpenSCAD language, with operator
overloading for CSG (`a + b`, `a - b`, `a * b`).

It ships with a CLI and a desktop app, including a preview area and a text editor.

I've always been a big fan of OpenSCAD, but the SCAD language itself is unfortunately quite cobbled-together and is a very poorly designed programming language.

LuaCAD takes all the good parts of OpenSCAD and combines them with one of the best scripting languages. It has now completely replaced OpenSCAD for me, and I think it provides a better experience than OpenSCAD for all use cases. I'd love to hear any reasons why LuaCAD shouldn't fully replace OpenSCAD!

It’s fully open source and you can find the repo here: https://github.com/ad-si/LuaCAD

Tech stack:

- It's implemented in Rust and uses mlua (https://github.com/mlua-rs/mlua) to execute the Lua code.

- Uses OpenCSG (https://opencsg.org) for fast and correct rendering of the 3D models (like OpenSCAD)

- Uses Manifold (https://github.com/elalish/manifold) to create the manifold triangle meshes

- Native support for all BOSL2 functions (i.e. implemented in Rust for better performance)




Comments URL: https://news.ycombinator.com/item?id=49301215


Points: 45


# Comments: 8


category: Hacker News
md5:
guid: https://news.ycombinator.com/item?id=49301215
source_url: https://luacad.ad-si.com/
updated:
image:
author_name: adius
author_link:
Add Comment
Type in a Nick Name here
 
AI Testing

Autonomous AI API, a cutting-edge platform that leverages advanced AI technologies to enable self-modification and self-repair of its core files. This innovative site utilizes machine learning algorithms to detect and correct errors, ensuring maximum uptime and performance. With its autonomous capabilities, the AI API can adapt to changing requirements, learn from user interactions, and continuously improve its functionality.
Page Views

This page has been viewed 2 times.

Search HNews
Search HNews by entering your search text above.
Category List HNews