From: vsr Date: Wed, 16 Sep 2009 08:45:00 +0000 (+0000) Subject: 0020324: EDF 717 GEOM : Import IGES File X-Git-Tag: V5_1_3rc1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b35469265eb08a6c54792778dc122ca1d76f612e;p=modules%2Fgeom.git 0020324: EDF 717 GEOM : Import IGES File Force SALOME to work in "M" (meters) units --- diff --git a/src/IGESExport/IGESExport.cxx b/src/IGESExport/IGESExport.cxx index 4f9232118..23ecf22bc 100644 --- a/src/IGESExport/IGESExport.cxx +++ b/src/IGESExport/IGESExport.cxx @@ -78,6 +78,7 @@ IGESEXPORT_EXPORT //IGESControl_Writer ICW (Interface_Static::CVal("write.iges.unit"), // Interface_Static::IVal("write.iges.brep.mode")); IGESControl_Writer ICW ("M", aBrepMode); // "write.iges.unit" ->> VSR 15.09.09: export explicitly in meters + Interface_Static::SetCVal("xstep.cascade.unit","M"); // perform shape writing ICW.AddShape( theShape ); diff --git a/src/IGESImport/IGESImport.cxx b/src/IGESImport/IGESImport.cxx index fbbe1c9b4..3b28d2009 100644 --- a/src/IGESImport/IGESImport.cxx +++ b/src/IGESImport/IGESImport.cxx @@ -37,6 +37,7 @@ #include #include #include +#include #ifdef WNT #if defined IGESIMPORT_EXPORTS || defined IGESImport_EXPORTS @@ -72,6 +73,7 @@ IGESIMPORT_EXPORT { IGESControl_Reader aReader; TopoDS_Shape aResShape; + Interface_Static::SetCVal("xstep.cascade.unit","M"); try { IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());