I'm developping a loader of Step file :
Standard_Integer stat = reader->ReadFile("file.step");
Standard_Integer nb = reader.NbRootsForTransfer();
occgeo->shape = reader->OneShape();
No problem, it works, but the allocation of memory is really big (nearly 70Mo of RAM for a Step model of 6Mo). So imagine the memory size reserved for a bigger model...
It would be possible to deallocate memory after reading the file ?
I'm using OpenGl to display the shape with "TopTools_IndexedMapOfShape" and a triangulation of the differents faces, so I don't need the object "reader" neither the "shape".
Thanks for your help.