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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / STEPControl_Reader::TransferRoot() slow

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
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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