Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

STEPControl_Reader::TransferRoot() slow

STEPControl_Reader::TransferRoot() slow
Peter Bako 2011/11/10 10:39
Hello everyone.
I use the STEPControl_Reader to load step files in my application, everything works fine, but the STEPControl_Reader::TransferRoot() function is very slow. It takes 34 seconds to run this function on a 4.5 MB Step file. Is this OK? Is there any way how to make this faster?
Thank you for the responses.

IFSelect_ReturnStatus status = aReader.ReadFile(aFileName);
if (status != IFSelect_RetDone)
return status;

Standard_Boolean failsonly = Standard_False;
aReader.PrintCheckLoad(failsonly, IFSelect_ItemsByEntity);

Standard_Integer nbr = aReader.NbRootsForTransfer();
aReader.PrintCheckTransfer (failsonly, IFSelect_CountByItem );
for ( Standard_Integer n = 1; n<=nbr; n++) {
Standard_Boolean ok = aReader.TransferRoot(); //THIS CALL is very slow.
QiweiLiu 2013/04/07 08:40
I have the same problem. It will be faster if using adams to load the same file.Why?     
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map