Skip to main content

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​

LayerWhat it is
build123dParametric Python API you author in the CAD/ tree (cad/)
OCPOpen CASCADE Python bindings — TopoDS_Shape, exporters, AIS display
OCCTC++ kernel — booleans, fillets, tessellation, STEP I/O

Where you see OCCT in this repo​

  • Modeling — every Part / Compound from build123d wraps OCCT topology
  • OCP CAD Viewer — displays TopoDS_Shape via 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/Dockerfile installs OCCT system libs and Mesa so local, viewer, and Dagger environments match

Official resources​

ResourceLink
Developer portaldev.opencascade.org
DocumentationOCCT docs
SourceOpen-Cascade-SAS/OCCT
build123dbuild123d.readthedocs.io
OCP bindingsCadQuery/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 DISPLAY is unset; see CAD tooling render.