BelfrySCAD
A hybrid procedural CAD application combining OpenSCAD-style script-based modeling with live WYSIWYG 3D interaction. Edit code or drag geometry — both views stay in sync.
Features
- Full OpenSCAD language — variables, functions, modules, loops, conditionals, all built-in primitives and transforms
- 3D viewport — GPU-accelerated rendering with camera controls (orbit, pan, zoom), measuring, and an X-ray beam for seeing into cavities
- WYSIWYG editing — click a shape to select the call you wrote (not the library node that built it), then drag a gizmo or nudge it with the arrow keys; the source rewrites itself, growing a delta on an expression so parametric relationships survive
- Code editor — syntax highlighting, code folding, find/replace, go to definition, indent and column guides, comment reflow, and reformatting profiles
- Value editing — right-click any number or expression to step it with the arrow keys, or open a list, path, grid, region, matrix, VNF or heightfield in a 3D editor and edit it directly
- Debugger — step through OpenSCAD code with breakpoints, call stack, and variable inspection
- Animation — preview animated models with playback controls
- CSG operations — union, difference, intersection powered by the Manifold kernel
- Customizer — edit a script's parameters through generated widgets, with saved parameter sets
- Libraries and fonts — install and update libraries in-app; pick a font family and style from a preview instead of guessing at a name
- Documentation generation —
openscad_docsgen-compatible docs and example images, in the GUI or headless
- Testing and coverage — run
.scadtest suites and see which statements, branch arms and module bodies a script actually ran
- AI chat — provider-agnostic assistant that proposes source edits for review before applying
- Command line — headless render and export, animation frames, dependency lists, test runner
- Export — 3MF, AMF, OBJ, OFF, PLY, STL, VRML and X3D, plus SVG and PDF for 2D designs; colour is carried by the formats that support it
Installation
Prebuilt installers are attached to every
release — a Windows
.msi and a Linux .AppImage. On macOS, run from source or build a .dmg
yourself (see Building Installers below).
From source
Requires Python 3.12+, and macOS 13.3 or later on a Mac — the floor comes from
the openscad_cpp_evaluator wheel.
git clone https://github.com/BelfrySCAD/BelfrySCAD.git
cd BelfrySCAD
uv sync
uv run belfryscad
Or with pip:
pip install -e .
belfryscad
Building Installers
BelfrySCAD uses Briefcase for platform packaging.
# macOS (.dmg)
uv run briefcase create macOS app
uv run briefcase build macOS app
uv run briefcase package macOS app --adhoc-sign
# Windows (.msi)
uv run briefcase create windows app
uv run briefcase build windows app
uv run briefcase package windows app
# Linux (.AppImage)
uv run briefcase create linux appimage
uv run briefcase build linux appimage
uv run briefcase package linux appimage
Running Tests
uv run pytest
Technology Stack
- UI: PySide6 (Qt)
- Parser & evaluator: openscad_cpp_evaluator (C++; bundles the Bison-based
openscad_cpp_parser)
- CSG kernel: Manifold
- Renderer: ModernGL
- Language: Python
Documentation
The wiki is the user
guide: a tour,
getting started,
a page per feature, and a full
language reference
including what this evaluator adds
to the language.
Implementation notes for contributors live in docs/:
editor, rendering,
WYSIWYG interaction, debugger and
documentation generation.
License
MIT