DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

Received incorrect faces while loading IGES

Data Exchange and Application FrameworkTue, 09/16/2025 - 04:042 replies

Browse this forum
QuestionAuthor

chrono
pload ALL
NewDocument d XCAF
ReadIges d "e:/old file/e/test/false_circle2.igs"
DFBrowse d
XShow d
vsetdispmode 1
vfit

When using the above script to load IGES, the small facets in the box become circular surfaces (missing the small facet part), and loading in CAD Assistant is not a problem,
Could you please help me understand the reason and what parameters need to be set
Version 7.8
Import code

// Read
IGESCAFControl_Reader reader;
reader.SetReadVisible(true);
IFSelect_ReturnStatus status = reader.ReadFile(filename);
Handle(XCAFApp_Application) anApp = XCAFApp_Application::GetApplication();
anApp->NewDocument(DOCUMENT_FORMAT, m_document);
if (IFSelect_RetDone != status || !reader.Transfer(m_document, aPS.Next(50)))
return false;

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

I also encountered the same problem. The IGS model that has issues was also exported from Polyworks,The model reads normally with OCC version 7.6.2, but it does not read correctly with higher versions of OCC.

02Commenter-2

Hello, please reports bug to the GitHub (https://github.com/Open-Cascade-SAS/OCCT/issues/new/choose).

The issue can be related to the usage of some settings for Import, you can play a little with parameters from DEIGES_ConfigrationNode, DEIGES_Parameters (available for latest master).

Best regards, Commenter-2.