Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CadQuery/OCP
https://github.com/CadQuery/OCP
b-rep brep cad occt opencascade python
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/CadQuery/OCP
- Owner: CadQuery
- License: apache-2.0
- Created: 2019-12-17T20:02:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T15:36:57.000Z (7 months ago)
- Last Synced: 2024-04-02T20:33:56.091Z (7 months ago)
- Topics: b-rep, brep, cad, occt, opencascade, python
- Language: C++
- Homepage:
- Size: 27 MB
- Stars: 76
- Watchers: 12
- Forks: 25
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cadquery - OCP - based CAD (Extensions and Plugins)
README
# OCP
[![Build Status](https://dev.azure.com/cadquery/OCP/_apis/build/status/CadQuery.OCP?branchName=master)](https://dev.azure.com/cadquery/OCP/_build/latest?definitionId=5&branchName=master)
[![Anaconda-Server Badge](https://anaconda.org/cadquery/ocp/badges/installer/conda.svg)](https://conda.anaconda.org/cadquery)Python wrapper for OCCT generated using pywrap. Typing stubs available [here](https://github.com/CadQuery/OCP-stubs).
## 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.