]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020750: EDF 1296 GEOM: Naming during STEP import
authorana <ana@opencascade.com>
Mon, 12 Mar 2012 09:04:32 +0000 (09:04 +0000)
committerana <ana@opencascade.com>
Mon, 12 Mar 2012 09:04:32 +0000 (09:04 +0000)
Small fix.

src/STEPImport/STEPImport.cxx

index 94a031339480f83c9aebc39ac758af2194221a2b..28b54a339ff0971cbe075c65e8473f51c45a55f3 100644 (file)
@@ -41,6 +41,7 @@
 #include <XSControl_TransferReader.hxx>
 #include <XSControl_WorkSession.hxx>
 #include <StepShape_TopologicalRepresentationItem.hxx>
+#include <StepGeom_GeometricRepresentationItem.hxx>
 
 #include <Transfer_Binder.hxx>
 #include <TNaming_Builder.hxx>
@@ -177,12 +178,13 @@ extern "C"
           Handle(Transfer_TransientProcess) TP = TR->TransientProcess();
           Handle(Standard_Type) tPD  = STANDARD_TYPE(StepBasic_ProductDefinition);
           Handle(Standard_Type) tShape  = STANDARD_TYPE(StepShape_TopologicalRepresentationItem);
+          Handle(Standard_Type) tGeom  = STANDARD_TYPE(StepGeom_GeometricRepresentationItem);
 
           Standard_Integer nb = Model->NbEntities();
           for (Standard_Integer ie = 1; ie <= nb; ie++) {
             Handle(Standard_Transient) enti = Model->Value(ie);
             Handle(TCollection_HAsciiString) aName;
-            if ( enti->IsKind( tShape ))
+            if ( enti->IsKind( tShape ) || enti->IsKind(tGeom))
             {
               aName = Handle(StepRepr_RepresentationItem)::DownCast(enti)->Name();
             }