Skip to content

About

A Python-first wrapper around OpenCascade (OCCT) via nanobind.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

pyOCCT Lite

pyOCCT Lite is an experimental Python library for modeling parts with OpenCASCADE (OCCT). It gives you a Python API for a subset of OCCT's geometry and modeling tools.

pyOCCT Lite started as a small, hand-written interface for sketching out the API before binding it to Python. It follows pyOCCT, which exposes OCCT directly to Python, and AFEM, which uses those bindings for airframe modeling. The examples in this version serve as a test bed for the API, including how well it works with agentic tooling.

A business jet built
up: its outer mold line, then the wing structure inside it
Global 8000-inspired business jet, construction

The business jet's general arrangement drawing
Business jet, general arrangement
The business jet's wing structure drawing
Business jet, wing structure layout

Working with agents

The library is developed with Claude Code. The setup lives in the repo, so changes to the instructions and tools can be reviewed and tested alongside changes to the library.

flowchart LR
    plan[Plan with the user] --> model[Build the model]
    model --> inspect[Render and measure]
    inspect -->|Unexpected result| model
    model -->|Missing capability| library[Update the library]
    library -->|Retry| model
    inspect -->|Checks pass| review[Review]
    review -->|Findings| model
    review -->|Done| record[Record what worked]
    record -.->|Next project| plan
Loading
  • .claude/ contains skills for modeling, inspecting geometry, and reviewing changes. One role works from the public Python API to see where a library user would get stuck.
  • evals/ contains tasks for trying changes to the setup. Some ask the agent to model a part from a spec. Others ask it to change the library.
  • projects/ contains plans and notes from past work, including what worked and what to try next. For one example, see What I learned running a team of agents modeling aerospace systems (written by the agent orchestrating the work).

Gallery

More models from the examples folder.

A CFM56-class turbofan with a quarter cut away
CFM56-class turbofan, quarter section
The turbofan in half section
CFM56-class turbofan, half section
An F-1-class rocket engine
F-1-class rocket engine
The rocket engine's turbopump and feed lines
F-1-class rocket engine, turbopump
An F450-class quadcopter, exploded
F450-class quadcopter, exploded
A compressor blisk
Compressor blisk
A Cessna 172-class light aircraft
Cessna 172-class aircraft
A Voyager-inspired spacecraft
Voyager-inspired spacecraft
The blisk's drawing
Blisk drawing

License

MIT

About

A Python-first wrapper around OpenCascade (OCCT) via nanobind.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages