Thu, 10/25/2012 - 01:33
Forums:
Good evening. I'm having crashes on reading some .step files. Here is my code to read a step file
var aReader = new OCSTEPControl_Reader();
aReader.ReadFile(filename);
aReader.PrintCheckLoad(false, OCIFSelect_PrintCount.IFSelect_ItemsByEntity);
var nbr = aReader.NbRootsForTransfer(); // CRASH HAPPENS HERE
aReader.TransferRoots();
return aReader.OneShape(); //Transform it into an opencascade shape
I've attached the file that crashes my open cascade when I try to read it. Is anyone having this problem? Thanks in advance for the help!
Thu, 10/25/2012 - 04:43
No problem with reading your STEP-File.
Thu, 10/25/2012 - 14:26
Hi Bernardo,
I was also able to import the file successfully.
However, I spotted some invalid faces within the model.
Pawel