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

Loading issues using tessellated geometries #39

Open
vernetrenaud opened this issue Jul 3, 2024 · 1 comment
Open

Loading issues using tessellated geometries #39

vernetrenaud opened this issue Jul 3, 2024 · 1 comment

Comments

@vernetrenaud
Copy link

Hi there, thanks for this nice library!

I have issues loading STEP files generated by Catia under some export settings, especially the "tessellated" mode.

  • When using the "exact geometry" export mode of Catia, occtimportjs can read the resulting file without problem, great.
  • When using the "tessellated" mode, it fails to load the file : this is my issue.

In the latter case, the error I get from the console is an exception, see attached screenshot.
image

Looking a bit deeper into this issue, from the STEP file generated with the tessellated mode, I see instructions like :
TESSELLATED_SOLID(...) , TESSELLATED_SHAPE_REPRESENTATION(...) ...
which do not exist in in the "exact geometry" exports.

So I believe that occtimportjs does not support these instructions, do you confirm this ?
Is there any workaround I could use ?

In case you wonder: I have to use the tessellated mode due to several constraints I have, like file size etc. So I don't really have the option to use the other export mode.

Thank you very much for your support, please let me know if you have any idea about this.
Cheers!
renaud

@vernetrenaud
Copy link
Author

Update here.

I have tried to open some tessellated STEP files using opencascade python library pythonocc-core 7.8.1, and this works fine.

So my understanding is that those files are supported by opencascade, but not in this JS library.
Do you share this conclusion?

Could it be that occt-import-js is based on an old version of opencascade library, and would need some update?
Thanks for your support!

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

1 participant