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

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

Open
omkarap55 opened this issue Sep 6, 2023 · 1 comment
Open

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

omkarap55 opened this issue Sep 6, 2023 · 1 comment

Comments

@omkarap55
Copy link

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
Copy link
Owner

kovacsv commented Sep 7, 2023

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

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