mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0022807: Loading of STEP entities in model during reading of STEP file requires redundant memory
This commit is contained in:
@@ -190,6 +190,7 @@ Standard_Integer StepFile_Read
|
||||
|
||||
readtool.PrepareHeader(recoheader); // Header. reco nul -> pour Protocol
|
||||
readtool.Prepare(recodata); // Data. reco nul -> pour Protocol
|
||||
|
||||
#ifdef CHRONOMESURE
|
||||
sout << " ... Parameters prepared ... ";
|
||||
c.Show();
|
||||
@@ -198,13 +199,16 @@ Standard_Integer StepFile_Read
|
||||
readtool.LoadModel(stepmodel);
|
||||
if (stepmodel->Protocol().IsNull()) stepmodel->SetProtocol (protocol);
|
||||
lir_file_fin(2);
|
||||
|
||||
readtool.Clear();
|
||||
undirec.Nullify();
|
||||
#ifdef CHRONOMESURE
|
||||
sout << " ... Objets analysed ... " << endl;
|
||||
c.Show();
|
||||
n = stepmodel->NbEntities() ;
|
||||
sout << " STEP Loading done : " << n << " Entities" << endl;
|
||||
#endif
|
||||
|
||||
|
||||
stepread_endinput (newin,ficnom); return 0 ;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user