Skip to main content

Overloaded methods

Overloads of C++ functions cannot always be mapped to overloaded JS functions without introducing ambiguities (simply due to differences of C++ and JS). Therefore, the API of this project enumerates all overloads of a function by appending _1, _2, ... to its name by the sequence in which they appear in the declaration.

E.g. if you look into the OpenCascade documentation for BRepMesh_IncrementalMesh, Perform_1 would give you

virtual void Perform (const Message_ProgressRange &theRange=Message_ProgressRange())

while Perform_2 would give you

void Perform (const Handle< IMeshTools_Context > &theContext, const Message_ProgressRange &theRange=Message_ProgressRange())