Show HN: Bcad – An OpenSCAD-syntax CAD powered by OpenCASCADE

johnfound1 pts1 comments

asm32.info - bCAD: OpenSCAD-syntax with Exact Geometry<br>🌀">

asm32.info<br>Keep it simple — code in asm

Други статии от johnfound<br>bCAD: OpenSCAD-syntax with Exact Geometry Разни неща за свалянеРабота със сайтаMiniMagAsm v2.0Статии на български Политика Технически прогрес и комунизъмБележкиВреме за работаПрограмиране Fossil - ускорен курс14 начина ...Тиобе, статистика и асемблер?За напреднали Малки триковеЗа начинаещи 6. Пишем преносима програма7. Общи конструкции5. Процесор4. Улеснения3. Памет2. Старт1. Числа0. ИнсталацияОбщи теми Историята на един байтЗа информационната безопасностДаото на програмирането

Съдържание<br>bCAD: OpenSCAD-syntax with Exact Geometry<br>1 What is bCAD?<br>2 The Twist: I didn't write the code<br>3 Features and Tech Stack<br>4 Try it out (Zero Installation)<br>5 How to run:<br>6 Source Code and License

bCAD: OpenSCAD-syntax with Exact Geometry§<br>1 What is bCAD?§<br>If you have ever used OpenSCAD for mechanical parts, you probably know the pain of dealing with its underlying CSG/Manifold/mesh engine. OpenSCAD is fantastic for code-driven design, but exporting everything as discretized polygons (STL) is less than ideal when you want to send your models to modern CAM software or integrate them into traditional engineering workflows. We need STEP files and true continuous geometry.

There was an abandoned project on GitHub called bcad that attempted to solve this. I decided to pick it up, revive it, and push it forward.

The result is a new, standalone version of bCAD . It retains the OpenSCAD ideology and language compatibility, but under the hood, it is powered by OpenCASCADE (OCCT) . This means it operates on exact geometry (B-Rep) rather than polygonal meshes, allowing for flawless STEP export.

Main GUI

2 The Twist: I didn't write the code§<br>Here is the fun part about this project: I have decades of programming experience, but I write almost exclusively in Assembly, with occasional dips into C. I don't know Python, and my knowledge of 3D graphics programming is strictly at the user level.

Since I couldn't write a modern Python-based 3D CAD GUI myself, I delegated 100% of the coding to AI. The entire development of this revival was done using the terminal version of opencode driven by the Big Pickle agent.

To my surprise, the result turned out to be very decent and completely functional. I figured since an AI wrote the code, it's only fair that an AI wrote this blog post too. :)

3 Features and Tech Stack§<br>Core: OpenCASCADE (True B-Rep / exact geometry).

Language: OpenSCAD mostly-compatible syntax with some additions for example 3d offset() function.

Export: STEP and STL formats as for now. (BTW, the program can open and render STEP files in ASCII format)

GUI: Built using imgui-bundle, keeping it lightweight, responsive, and cross-platform.

4 Try it out (Zero Installation)§<br>I wanted to keep deployment as simple as possible. The application is fully portable and keeps all its runtime files neatly contained in its own directory. If you don't like it, just delete the folder—it won't leave garbage in your system.

Downloads: (approx. 90MB)

For Linux: bcad-linux.7z

For Windows: bcad-windows.7z

5 How to run:§<br>Extract the archive into any folder.

On Linux: Double-click bcad.desktop or run ./AppRun from your terminal.

On Windows: Run bcad-windows.exe .

Once you open it, go to File | Examples to see how it works. Since it parses OpenSCAD, you can also just load your existing .scad scripts and see how they compile into exact geometry.

One of the examples

6 Source Code and License§<br>The project is licensed under GPL v2 .

Instead of GitHub, I host the source code on a Fossil repository. You can explore the code, open tickets, or pull the repo here:

Repository: https://asm32.info/fossil/bcad/

(Original abandoned code by snegovick can be found here).

Last modified on: 28.06.2026 17:12

Коментирай статията

Потребител:

Subject

Текст:

10

bcad openscad code geometry exact syntax

Related Articles