Skip to content

tpaviot/pythonocc-core

Repository files navigation

Code style: black Azure Build Status Downloads Badge Codacy Badge Binder DOI

pythonocc-core

About

pythonocc provides 3D modeling and dataexchange features. It is intended for CAD/PDM/PLM/BIM development. It is based on the OpenCascade Technology modeling kernel.

Latest release: pythonocc-core 7.9.0 (April 2025)

Features

pythonocc provides the following features:

  • Full access from Python to almost all of the thousand OpenCascade C++ classes. Classes and methods/functions share the same names, and, as possible as it can be, the same signature
  • 3D visualization from the most famous Python Gui (tkinter, pyQt5 and 6, PySide2 and 6, wxPython)
  • 3D visualization in a web browser using threejs or x3dom frameworks
  • 3D visualization and work within a jupyter notebook
  • Data exchange using most famous formats IGES/STEP/STL/PLY/OBJ/GLTF
  • Utility Python classes/methods for Topology operations, inertia computations, and more

Try online at mybinder

Click Binder to open a jupyter notebook running the latest pythonocc-core 7.9.0.

Install with conda

pythonocc provides precompiled conda packages (they depend on third part libraries made available from the conda-forge channel) for python 3.9, 3.10, 3.11 and 3.12. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.10:

# first create an environment
conda create --name=pyoccenv python=3.10
conda activate pyoccenv
conda install -c conda-forge pythonocc-core=7.9.0

Other conda channels may provide pythonocc-core packages, check search Anaconda

Build from source

Read the INSTALL.md instructions where you find compilation instructions for all platforms.

Cite as

pythonocc is widely used in the industrial and academic communities. It is registered as a Zenodo open access softwar and should be cited as:

Paviot, T. (2022). "pythonocc". Zenodo. https://doi.org/10.5281/zenodo.3605364

Professional support

pythonocc is backed by meeDIA, a company co-founded by pythonocc's creator and lead maintainer. For professional support inquiries, please contact us.

meeDIA logo

Other pythonocc related resources

License

pythonocc-core is licensed under the GNU Lesser General Public License version 3 as published by the Free Software Foundation. You can redistribute and/or modify it under the terms of this license.