kovacsv / occt-import-js

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

ReadStepFile function takes a long time to read STEP file #33

Open omkarap55 opened 11 months ago

omkarap55 commented 11 months ago

Hi, I have observed that ReadStepFile function takes a long time to read STEP files (Took more than 3 mins on my machine to load 25mb STEP file). Is there any way to reduce this loading time?

kovacsv commented 11 months ago

The speed is not dependent on the file size, but more like the complexity of the model. Usually the triangulation takes the most time of the loading process. You can set the linearDeflection and angularDeflection parameters to modify the level of segmentation, and that should make it faster.

See the documentation for details: https://github.com/kovacsv/occt-import-js