Skip to content

tpaviot/pythonocc-core

Folders and files

NameName
Last commit message
Last commit date
Aug 19, 2022
Nov 28, 2022
Aug 15, 2022
Feb 11, 2021
Nov 29, 2022
Nov 29, 2022
Mar 26, 2018
Dec 30, 2018
Aug 17, 2022
Nov 28, 2022
Nov 29, 2022
Aug 25, 2014
Nov 29, 2022
Nov 29, 2022
Nov 21, 2022
Aug 16, 2022

Repository files navigation

Azure Build Status Downloads Badge Language grade: Python Codacy Badge Binder DOI

pythonocc-core

About

pythonocc provides 3D modeling and dataexchange features. It is intended to CAD/PDM/PLM and BIM related development.

Latest release : pythonocc-core 7.7.0 (November 2022)

Features

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.

Try online at mybinder

Click Binder to open a jupyter notebook running latest pythonocc-core 7.7.0, gmesh (http://gmsh.info/) and latest IfcOpenshell (https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0) dev branch.

Download/install binaries for Linux/OSX/Windows

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.8, 3.9 and 3.10. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.9:

# first create an environment
conda create --name=pyoccenv python=3.9
source activate pyoccenv
conda install -c conda-forge pythonocc-core=7.7.0

Other channels provide pythonocc-core packages, check https://anaconda.org/search?q=pythonocc-core.

Build from source by yourself

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

Other pythonocc related resources

Online resources for development

We use the following online resources:

pythonocc, oce and opencascade dependencies

pythonocc-core 7.7.0 depends on the official OpenCascade-7.7.0 library (https://dev.opencascade.org)

Former releases rely on oce (OpenCascade Community Edition), available at
oce C++ library / CAD kernel.

License

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.