Giter Site home page Giter Site logo

occmodel's Introduction

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

occmodel's People

Contributors

tenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

occmodel's Issues

Comments on Installation of occmodel on Ubuntu 16.04

Hi,

I spent quite some time to install occmodel on Ubuntu 16.04. I wanted to report some issues I stumbled upon in the hope it might be helpful for others.

I installed oce-0.17 manually. 0.17.1, which is available using sudo apt-get install liboce-*-dev might also work, but I did not try it again. Version 0.16.x does not work.

Installation of gltools and geotools worked fine after installing the requirements. However, I had to manually create a link to libXmu:

sudo ln -s /usr/lib/x86_64-linux-gnu/libXmu.so.6 /usr/lib/x86_64-linux-gnu/libXmu.so

Then, in setup_build.py, the TKAdvTools library has to be removed (as this is not built anymore by oce, see here. In addition, line 70 and following should say:

SOURCES += glob.glob("occmodel/@src/*.cpp")
OCCINCLUDE = '/usr/local/include/oce'
OCCLIBS = OCC.split()
COMPILE_ARGS.append("-fpermissive")

Note that when installing oce manually, it is installed in /usr/local instead of /usr!

David

Unable to install occmodel with PIP

I'm trying to install occmodel with pip install occmodel and get the following error message:

Downloading/unpacking occmodel
  Downloading occmodel-0.1.0.tar.gz (270kB): 270kB downloaded
  Running setup.py (path:/tmp/pip-build-niH2pa/occmodel/setup.py) egg_info for package occmodel
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-niH2pa/occmodel/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

IOError: [Errno 2] No such file or directory: '/tmp/pip-build-niH2pa/occmodel/setup.py'

It seems that the tarball downloaded from PyPI doesn't contain setup.py file, it's named setup_build.py instead. Have you ever checked whether the library can be installed from PyPI?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.