Open CASCADE
Open CASCADE Technology (OCCT) is the open-source B-rep CAD kernel underneath build123d. When you sketch, extrude, fillet, or export STEP in this workspace, the solid modeling work happens in OCCT — build123d is the Python layer on top.
Not OpenSCAD
Open CASCADE (OCCT) is a full CAD kernel for boundary-representation solids. OpenSCAD is a separate script-based CSG modeler. This template uses the former via build123d, not OpenSCAD.
How it fits the stack
| Layer | What it is |
|---|---|
| build123d | Parametric Python API you author in the CAD/ tree (cad/) |
| OCP | Open CASCADE Python bindings — TopoDS_Shape, exporters, AIS display |
| OCCT | C++ kernel — booleans, fillets, tessellation, STEP I/O |
Where you see OCCT in this repo
- Modeling — every
Part/Compoundfrom build123d wraps OCCT topology - OCP CAD Viewer — displays
TopoDS_Shapevia the AIS pipeline cad_tooling.render— headless PNG export through OCP (V3d_Viewer,AIS_Shape)- Export — STEP and STL writers in Open CASCADE
- Dev container / CI/CD pipeline —
.devcontainer/Dockerfileinstalls OCCT system libs and Mesa so local, viewer, and Dagger environments match
Official resources
| Resource | Link |
|---|---|
| Developer portal | dev.opencascade.org |
| Documentation | OCCT docs |
| Source | Open-Cascade-SAS/OCCT |
| build123d | build123d.readthedocs.io |
| OCP bindings | CadQuery/OCP |
Practical notes
- STEP is the most faithful interchange format OCCT offers; STL is a tessellated snapshot.
- Selector-based operations (faces, edges) depend on stable topology — refactors that change face order can break selectors.
- Headless rendering in the CI/CD pipeline uses Xvfb when
DISPLAYis unset; see CAD tooling render.
Related
- Glossary — OCP vs build123d terms
- Stack architecture — full workspace diagram
- Dev container — OCCT/Mesa parity with the CI/CD pipeline