DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

problems while loading very large STEP files

Data Exchange and Application FrameworkTue, 09/16/2025 - 05:337 replies

Browse this forum
QuestionAuthor

I had very large a STEP file(64MB) to be loaded to a TopoDS shape and the loading took more than 6 hours.

Anything I can do to improve it?

The code I used:

Archived image: external image

Discussion

7 archived replies

Posts are displayed in their archived order.

01Commenter-1

64mb is not big. 700mb takes about 3-5min usually.

OCCT have a issue when your model is kinda created from planar polygons (thousands of faces inside shell). In that case it will takes a lot time. Is it your case? If yes - i can suggest a workaround while we are preparing fix (will takes a few months). Or if it is not your case - then we need to have a file from your to analyze.

Also, please share the OCCT version used for your import process.

Best regards, Commenter-1.

02Author

Thank you for the elaboration.

I'm not sure which case it is, as the file was from a client who is not likely to know it either.
Could you please help analyse the file attached?

Also, the OCCT version is 7.9.1.

Best regards, Author

03Commenter-1

Yes, it is a case, when model have thousands faces inside single close shell. Please apply parameters from that thread and disable the healing of order of faces inside shell.

Link: STeP Importer stuck and hogging memory - Forum Open Cascade Technology

Best regards, Commenter-1.

04Author

Hi Dmitrii,

Thank you for identifying the problem!

I read the thread you mentioned.

It's a bit long and has something I don't quite understand.

So I write down my thoughts here. Please correct me if I get anything wrong.

The loading problem is caused by OCCT trying "FixShellOrientationMode", so I think I should disable it as a workaround.

Since 7.9.0, the shape healing parameters are available in DE Interface. So I changed my code like this:

Archived image: external image

However, it seems not to work. The loading is still stuck at "TransferRoots()".

Did I miss anything import here?

Best regards, Author

05Commenter-1

It looks as valid usage. I need to check locally, my apologies. Will check during current week.

Best regards, Commenter-1.

06Author

Hello Dmitrii,

Any news about the problem?

Best regards,
Author

07Commenter-1

Hello. Your file have another issue, resolving of which is not done and not yet prioritized.

As for an old issue with stack with huge number of faces per shell - it is waiting for integration now, fixed:Shape Healing - Optimize FixFaceOrientation

As for your fix, could you please create a GH issue with file attached? If issue is critical for you and need to be solved in some near time, please reference to "Bug fixing and correction" commercial request: Custom Software Development & Services - OCCT3D

Best regards, Commenter-1.