kovacsv / occt-import-js

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

Loading issues using tessellated geometries #39

Open vernetrenaud opened 1 month ago

vernetrenaud commented 1 month ago

Hi there, thanks for this nice library!

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

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 commented 1 month ago

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!