Hi,
Just included more webIDL interfaces and created simplified demo of the opencascade bottle example, operations like fuse, fillet, extrude are also included.
About the file size, with more webIDL interface, there is no significant increase of the .js file size, last time around 10 classes are exposed, the file size is 74.9MB and this time around 50 classes are exposed, the file size is 75MB.
On top of that, without emscripten assertion support, the .js file size decreases to 40MB.
The bottle example is simplified because of two problems.
Another issue is the Handle in oce. I wonder if I am right about this: the handle is like a smart pointer, and in oce it is defined as
#define Handle(ClassName) Handle_##ClassName
Since that emscripten doesn't have macro support for webIDL, I am not really sure about how to expose it in webIDL and how to use handle in javascript.
I am quite stuck about these problems, really appreciate any advice/ correction.
Thank you very much!
Rui