Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there documentation describes the JS APIs for npm installed opencascade's wasm? #36

Closed
JackyLeeGit opened this issue May 10, 2021 · 3 comments

Comments

@JackyLeeGit
Copy link

No description provided.

@JackyLeeGit
Copy link
Author

a little confused about all the APIs used in the example end with number suffix.

@donalffons
Copy link
Owner

Hey there,

currently there is not much documentation (unfortunately). The story behind the number suffixes is this:
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())

@JackyLeeGit
Copy link
Author

Got it , thanks a lot for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants