occt-import-js icon indicating copy to clipboard operation
occt-import-js copied to clipboard

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

Open yanchiuvip opened this issue 1 year ago • 4 comments

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?

yanchiuvip avatar Jun 14 '23 11:06 yanchiuvip

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 avatar Jun 15 '23 02:06 kzhsw

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.

kzhsw avatar Jun 19 '23 01:06 kzhsw

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

kovacsv avatar Jun 21 '23 19:06 kovacsv

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!

longhan avatar Jun 22 '23 02:06 longhan