From: ana Date: Mon, 12 Mar 2012 09:04:32 +0000 (+0000) Subject: 0020750: EDF 1296 GEOM: Naming during STEP import X-Git-Tag: V6_5_0a1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8afd587dc96f8e316ef72c520e2a93276c8510b1;p=modules%2Fgeom.git 0020750: EDF 1296 GEOM: Naming during STEP import Small fix. --- diff --git a/src/STEPImport/STEPImport.cxx b/src/STEPImport/STEPImport.cxx index 94a031339..28b54a339 100644 --- a/src/STEPImport/STEPImport.cxx +++ b/src/STEPImport/STEPImport.cxx @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -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(); }