Skip to content

sky92archangel/pythonocc-core

 
 

Repository files navigation

Azure Build Status Conda installer 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.5.1 (march 2021)

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.5.1, 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.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

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

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.

About

Python package for 3D CAD/BIM/PLM/CAM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SWIG 80.8%
  • Python 17.0%
  • C++ 2.0%
  • CMake 0.1%
  • HTML 0.1%
  • C 0.0%