Simplified python wrapper for OpenCASCADE
C Python C++ Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
occmodel
.gitattributes
.gitignore
LICENSE.txt Implement mesh optimizer Nov 3, 2012
MANIFEST.in Fix Windows & Python 3.x building Nov 23, 2012
Makefile Fix build against OCE 0.17 and Python3.5 Jan 10, 2016
README.rst
TODO.rst
setup_build.py Pull request : Fix MacOS build May 3, 2014
setup_docs.py Fix Windows & Python 3.x building Nov 23, 2012
version.py update to occ 0.15 Mar 28, 2014

README.rst

Introduction

occmodel is a small library which gives a high level access to the OpenCASCADE modelling kernel.

For most users a direct use of the OpenCASCADE modelling kernel can be quite a hurdle as it is a huge library.

The geometry can be visualized with the included viewer. This viewer is utilizing modern OpenGL methods like GLSL shaders and vertex buffers to ensure visual quality and maximum speed. To use the viewer OpenGL version 2.1 is needed.

Most of the code have been adapted from the freecad (GPL 2).

The license is GPL v2.

Building

  • Python 2.7/3.x and Cython 0.17 or later.
  • A working installation of OpenCASCADE (OCE prefered)
  • The geotools library.
  • The optional viewer and demo needs the gltools library.

Note that currently I can not find a way to install the required Cython 'pxd' files with distutils and this file has to be copied manually.

On the Windows platform installers are available on the pypi web site. It is possible to build the module from source with the help of the express edition of Visual Studio, but the process is rather involved compared to Linux.

To complete the windows installation the OpenCASCADE dll's must be installed and placed in the system path. Prebuilt binaries are available on the OCE project site. The python 2.7 module is linked against 'OCE-0.10.0-Win-MSVC2008.zip' and the python 3.3 module is linked against 'OCE-0.10.0-Win-MSVC2010.zip'.

For Linux build scripts are available for ArchLinux in the AUR repository. These could be adapted to other Linux distros.

Documentation

See online Sphinx docs