For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Technical Information III.

Sandor_ Racz's picture

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's picture

Just to answer questions that came in in the meantime:

function overloading is supported.