mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
0020532: [CEA] V5.1.3rc1 - Geom test fails
This commit is contained in:
parent
067e5f9d10
commit
a258642774
@ -73,6 +73,10 @@ IGESEXPORT_EXPORT
|
|||||||
if (theFormatName.IsEqual("IGES_5_3"))
|
if (theFormatName.IsEqual("IGES_5_3"))
|
||||||
aBrepMode = 1;
|
aBrepMode = 1;
|
||||||
|
|
||||||
|
// Set "C" numeric locale to save numbers correctly
|
||||||
|
std::string aCurLocale = setlocale(LC_NUMERIC, 0);
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
|
||||||
// initialize writer
|
// initialize writer
|
||||||
IGESControl_Controller::Init();
|
IGESControl_Controller::Init();
|
||||||
//IGESControl_Writer ICW (Interface_Static::CVal("write.iges.unit"),
|
//IGESControl_Writer ICW (Interface_Static::CVal("write.iges.unit"),
|
||||||
@ -83,7 +87,11 @@ IGESEXPORT_EXPORT
|
|||||||
// perform shape writing
|
// perform shape writing
|
||||||
ICW.AddShape( theShape );
|
ICW.AddShape( theShape );
|
||||||
ICW.ComputeModel();
|
ICW.ComputeModel();
|
||||||
if ( ICW.Write( theFileName.ToCString() ) )
|
bool ok = ICW.Write( theFileName.ToCString() );
|
||||||
|
|
||||||
|
// Return previous locale
|
||||||
|
setlocale(LC_NUMERIC, aCurLocale.data());
|
||||||
|
if ( ok )
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
catch(Standard_Failure)
|
catch(Standard_Failure)
|
||||||
|
Loading…
Reference in New Issue
Block a user