From: vsr Date: Wed, 16 Sep 2009 11:01:05 +0000 (+0000) Subject: 0020324: EDF 717 GEOM : Import IGES File X-Git-Tag: V5_1_3rc1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=656071da949e065e9e27bcff5c4ee0b62271ce4a;p=modules%2Fgeom.git 0020324: EDF 717 GEOM : Import IGES File Force SALOME to work in "M" (meters) units : same for STEP files --- diff --git a/src/STEPExport/STEPExport.cxx b/src/STEPExport/STEPExport.cxx index ec50dc361..75fd79cfe 100644 --- a/src/STEPExport/STEPExport.cxx +++ b/src/STEPExport/STEPExport.cxx @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -69,6 +70,8 @@ STEPEXPORT_EXPORT IFSelect_ReturnStatus status ; //VRV: OCC 4.0 migration STEPControl_Writer aWriter; + //VSR: 16/09/09: Convert to METERS + Interface_Static::SetCVal("xstep.cascade.unit","M"); //JFA: PAL6162 status = aWriter.Transfer( theShape, STEPControl_ManifoldSolidBrep ); status = aWriter.Transfer( theShape, STEPControl_AsIs ); //VRV: OCC 4.0 migration diff --git a/src/STEPImport/STEPImport.cxx b/src/STEPImport/STEPImport.cxx index 33e15f524..f021d3a79 100644 --- a/src/STEPImport/STEPImport.cxx +++ b/src/STEPImport/STEPImport.cxx @@ -36,6 +36,7 @@ #include #include #include +#include #include #include // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC @@ -76,6 +77,8 @@ STEPIMPORT_EXPORT TopoDS_Shape aResShape; //VRV: OCC 4.0 migration STEPControl_Reader aReader; + //VSR: 16/09/09: Convert to METERS + Interface_Static::SetCVal("xstep.cascade.unit","M"); //VRV: OCC 4.0 migration TopoDS_Compound compound; BRep_Builder B;