Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Technical information I.

Technical information I.
Sandor_ Racz 2002/05/30 16:13
Thanks for all the mails and inquiries regarding the pythonCascade project. By now the first working version is able to wrap OpenCASCADE classes automatically and some of the resulting pythonCascade modules are fully tested. Some technical information will be published here regularly about the structure and capabilities of this new Python library.

Any question, comment and suggestion will be greatly appreciated.

The Python version of Open CASCADE is organized into packages like gp, WNT, V3d, AIS etc. Packages contain Python modules. Each and every Open CASCADE C++ class has an equivalent Python module.

In the current version all the Open CASCADE enumerations are collected into one separate module. This might change in the future. An alternative solution would be to create a separate module of enumerations for each package (that contains just those enumerations that belong to a specific package).

Examples:

E:\pythoncascade>python
Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> from enum import *
>>> x = Quantity_NOC_MATRABLUE
>>> x
1
>>> y = Quantity_NOC_LIGHTBLUE
>>> y
271
>>> Aspect_TOL_DOTDASH
3
>>>


Sandor Racz
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map