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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / pythonCascade / Technical Information III.

Technical Information III.

Technical Information III.
Sandor_ Racz 2002/06/02 01:22
Those arguments that have default values in the C++ version are also supported in the Python version. So depending on the number of arguments that the user provides for a method, the remaining ones will be set to a predefined value just like in the C++ version.

Those objects that has Python equivalents are substituted by Python objects
(e.g.TCollection_ExtendedString,Standard_CString are handled as Python string etc.)

Example:

>>> t1 = Standard_Type("dummy")
>>> t1.Name()
'dummy'
>>>

pythonCascade returns values in tuples in those cases when the arguments of
a method in the C++ version might change (like non-const references).

Example:

>>> from gp_Vec import *
>>> v=gp_Vec(11,-2,3)
>>> dummy1=1
>>> dummy2=1
>>> dummy3=1
>>> v.Coord(dummy1,dummy2,dummy3)
(11.0, -2.0, 3.0)
>>>

Probably the next version also will work in the v.Coord() form (but it needs more programming effort to make distinction between arguments that are used in a function or just their values are returned)
Sandor_ Racz 2002/06/05 16:38
Just to answer questions that came in in the meantime:

function overloading is supported.
 
 
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