C++ Apache-2.0

OCP

C

CadQuery

Dernière activité 29 sept. 2026
CadQuery/OCP

203

étoiles

50

forks

33

issues ouvertes

b-repbrepcadocctopencascadepybind11python

Ce README est souvent en anglais.

OCP

Build Bindings Anaconda-Server Badge

Python wrapper for OCCT generated using pywrap. Typing stubs available here.

Goals

  • Provide thin bindings to OCCT.
  • Wrap all OCCT modules (if practical).
  • React quickly to new OCCT releases.
  • Cater primarily for the CadQuery project.

Non-goals

  • Provide additional functionality not present in OCCT

Installation

The easiest way to get started is to use conda:

conda install -c conda-forge -c cadquery ocp

Generating and building from sources is also possible using https://github.com/CadQuery/pywrap , but not advised.

pywrap all ocp.toml
cmake -S OCP -B build
cmake --build build

To generate the bindings you'll need to use packages version specified in the environment.devenv.yml file and you might need to specify additional headers and libclang location for pywrap.

pywrap -i path1/include -i path2/include -l path/to/libclang.so all ocp.toml

Building from the released sources without the generation step is possible too. Note that this is how the conda-forge package is built.

Projets similaires

A python parametric CAD scripting framework based on OCCT

Python3dbrepcad
CCadQuery
5,9 k étoiles548

CadQuery GUI editor based on PyQT

Python3db-repcad
CCadQuery
1,2 k étoiles210

A python CAD programming library

Python3d3d-models3d-printing
Ggumyr
3,2 k étoiles289