kovacsv / occt-import-js

The emscripten interface for OpenCascade import functionalities.
GNU Lesser General Public License v2.1
141 stars 23 forks source link

How big a model can be loaded? like the number of triangles #30

Open yanchiuvip opened 1 year ago

yanchiuvip commented 1 year ago

I tried to upload a step file of more than 200 M, and the system did not respond directly. How can I solve and optimize it?

kzhsw commented 1 year ago

If running in a browser is not required, a natively-compiled opencascade-based app like mayo and CAD Assistant, for batched processing, mayo has a command-line mode. If running browser is required, foxtrot could be an option. This unmaintained project had a trade-off with feature to speed, it can support some common step models, but not all of them. Also, wasm exceptions could increase performance, but compiler failures makes it impossible to make a measurement.

kzhsw commented 1 year ago

Could the step file be shared? There seems to be a performance improvment here https://github.com/kovacsv/occt-import-js/issues/29#issuecomment-1596176140, but tests with large models are needed.

kovacsv commented 1 year ago

@yanchiuvip please try the latest version, it may work better.

longhan commented 1 year ago

My macbook pro M1 took 30 seconds (75 seconds with previous version) to open about 30mb file (173,587 triangles). This version is big improvement in term of loading time and file size.

Thank you all!