Skip to content

CadQuery/OCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

01055e0 · Feb 9, 2025
May 19, 2024
May 19, 2024
Jan 7, 2025
Mar 28, 2024
Apr 13, 2020
Mar 28, 2024
Aug 24, 2020
Dec 22, 2020
Apr 15, 2024
May 20, 2023
Jan 18, 2025
Jan 9, 2025
Jan 10, 2025
Feb 9, 2025
Dec 23, 2021
Jan 16, 2021

Repository files navigation

OCP

Build Status 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.