mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0025252: Slow down in reading of .brep on VS2011
Reading of .brep is slow down on VS2011 due to problems in realization reading ASCII strings to real. Implementation of dedicated function for reading of reals was implemented
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <TopLoc_Location.hxx>
|
||||
#include <Message_ProgressSentry.hxx>
|
||||
|
||||
#include <GeomTools.hxx>
|
||||
#include <gp_Ax3.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#include <Precision.hxx>
|
||||
@@ -219,9 +220,20 @@ static void ReadTrsf(gp_Trsf& T,
|
||||
Standard_Real V1[3],V2[3],V3[3];
|
||||
Standard_Real V[3];
|
||||
|
||||
IS >> V1[0] >> V1[1] >> V1[2] >> V[0];
|
||||
IS >> V2[0] >> V2[1] >> V2[2] >> V[1];
|
||||
IS >> V3[0] >> V3[1] >> V3[2] >> V[2];
|
||||
GeomTools::GetReal(IS, V1[0]);
|
||||
GeomTools::GetReal(IS, V1[1]);
|
||||
GeomTools::GetReal(IS, V1[2]);
|
||||
GeomTools::GetReal(IS, V[0]);
|
||||
|
||||
GeomTools::GetReal(IS, V2[0]);
|
||||
GeomTools::GetReal(IS, V2[1]);
|
||||
GeomTools::GetReal(IS, V2[2]);
|
||||
GeomTools::GetReal(IS, V[1]);
|
||||
|
||||
GeomTools::GetReal(IS, V3[0]);
|
||||
GeomTools::GetReal(IS, V3[1]);
|
||||
GeomTools::GetReal(IS, V3[2]);
|
||||
GeomTools::GetReal(IS, V[2]);
|
||||
|
||||
T.SetValues(V1[0],V1[1],V1[2],V[0],
|
||||
V2[0],V2[1],V2[2],V[1],
|
||||
|
Reference in New Issue
Block a user