From b35469265eb08a6c54792778dc122ca1d76f612e Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 16 Sep 2009 08:45:00 +0000 Subject: [PATCH] 0020324: EDF 717 GEOM : Import IGES File Force SALOME to work in "M" (meters) units --- src/IGESExport/IGESExport.cxx | 1 + src/IGESImport/IGESImport.cxx | 2 ++ 2 files changed, 3 insertions(+) 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()); -- 2.39.2