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 · 3 comments
Open

Loading issues using tessellated geometries #39

vernetrenaud opened this issue Jul 3, 2024 · 3 comments

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!

@kovacsv
Copy link
Owner

kovacsv commented Dec 2, 2024

Could you please attach an example file?

@vernetrenaud
Copy link
Author

Hi, thanks for replying.
The attached file shows the issue.
example.txt
From what I understand, before OCCT 7.8 (I think) the most recent STEP specification AP242 is not handled properly.
Could it be that you library depends on an old version of OCCT ?
Thanks

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