TCollection_AsciiString& theError,
const TDF_Label&)
{
+ // Set "C" numeric locale to save numbers correctly
+ std::string aCurLocale = setlocale(LC_NUMERIC, 0);
+ setlocale(LC_NUMERIC, "C");
+
IGESControl_Reader aReader;
TopoDS_Shape aResShape;
Interface_Static::SetCVal("xstep.cascade.unit","M");
TopoDS_Vertex V;
B.MakeVertex(V,P,1.e-7);
aResShape = V;
+ // Return previous locale before return from import
+ setlocale(LC_NUMERIC, aCurLocale.data());
return aResShape;
}
if( theFormatName == "IGES_SCALE" ) {
theError = aFail->GetMessageString();
aResShape.Nullify();
}
+ // Return previous locale
+ setlocale(LC_NUMERIC, aCurLocale.data());
return aResShape;
}
}
const TDF_Label&)
{
MESSAGE("Import STEP model from file " << theFileName.ToCString());
+ // Set "C" numeric locale to save numbers correctly
+ std::string aCurLocale = setlocale(LC_NUMERIC, 0);
+ setlocale(LC_NUMERIC, "C");
TopoDS_Shape aResShape;
//VRV: OCC 4.0 migration
STEPControl_Reader aReader;
theError = aFail->GetMessageString();
aResShape.Nullify();
}
+ // Return previous locale
+ setlocale(LC_NUMERIC, aCurLocale.data());
return aResShape;
}
}