Salome HOME
Issue #529 : 4.07. Import IGES, export to BREP, STEP, IGES - Export IGES
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_IGESImport.cpp
index cc46fda83e713cb9a4f3315176415938bd7e36fd..481c13521d08c225ddaa68bbb99b0f17d8888319 100644 (file)
@@ -21,25 +21,11 @@ TopoDS_Shape Import(const TCollection_AsciiString& theFileName,
   std::cout << "Import IGES from file " << theFileName << std::endl;
   #endif
   TopoDS_Shape aResShape;
-
-//  bool anIsIgnoreUnits = false;
-
   IGESControl_Reader aReader;
   try {
     IFSelect_ReturnStatus status = aReader.ReadFile( theFileName.ToCString() );
 
     if (status == IFSelect_RetDone) {
-//      if( anIsIgnoreUnits ) {
-//        // need re-scale a model, set UnitFlag to 'meter'
-//        Handle(IGESData_IGESModel) aModel =
-//          Handle(IGESData_IGESModel)::DownCast( aReader.Model() );
-//        if( !aModel.IsNull() ) {
-//          IGESData_GlobalSection aGS = aModel->GlobalSection();
-//          aGS.SetUnitFlag(6);
-//          aModel->SetGlobalSection(aGS);
-//        }
-//      }
-
       #ifdef _DEBUG
       std::cout << "ImportIGES : all Geometry Transfer" << std::endl;
       #endif
@@ -68,7 +54,7 @@ TopoDS_Shape Import(const TCollection_AsciiString& theFileName,
         default:
           theError = "Wrong format of the imported file. Can't import file.";
           break;
-        }
+      }
       aResShape.Nullify();
     }
   }