pythonocc provides 3D modeling and dataexchange features. It is intended to CAD/PDM/PLM and BIM related development.
Latest release : pythonocc-core 7.5.1 (march 2021)
pythonocc provides the following features:
- a full access from Python to almost all af 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 (pyQt, PySide1 and 2, wxPython)
- 3D visualization in a web browser using WebGl and/or x3dom renderers
- 3D visualization and work within a jupyter notebook
- Various utility Python classes/methods for DataExchange, Topology operations, inertia computations etc.
Click to open a jupyter notebook running latest pythonocc-core 7.5.1, gmesh (http://gmsh.info/) and latest IfcOpenshell (https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0) dev branch.
pythonocc provides precompiled conda packages (they depend on third part libraries made available from the dlr-sc and conda-forge conda channels) for python 3.7, 3.8 and 3.9. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.7:
# first create an environment
conda create --name=pyoccenv python=3.7
source activate pyoccenv
conda install -c conda-forge pythonocc-core=7.5.1 occt=7.5.1
Other channels provide pythonocc-core packages, check https://anaconda.org/search?q=pythonocc-core.
Read the INSTALL.md instructions where you find compilation instructions for all platforms.
- Demos: python examples, as well as jupyter notebooks https://github.com/tpaviot/pythonocc-demos
- Docker, binderhub: docker and online jupyter notebooks https://github.com/tpaviot/pythonocc-binderhub
- Documentation: https://github.com/tpaviot/pythonocc-documentation
We use the following online resources:
- Homepage: http://www.pythonocc.org
- Mailing list: http://groups.google.com/group/pythonocc
- Twitter : https://twitter.com/pythonocc
- LGTM code quality review: https://lgtm.com/projects/g/tpaviot/honocc-core/
- Codacy quality checker: https://app.codacy.com/app/tpaviot/pythonocc-core
pythonocc-core 7.5.1 depends on the official OpenCascade-7.5.1 library (https://dev.opencascade.org)
Former releases rely on oce (OpenCascade Community Edition), available at
oce C++ library / CAD kernel.
You can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation.