From 8afd587dc96f8e316ef72c520e2a93276c8510b1 Mon Sep 17 00:00:00 2001 From: ana Date: Mon, 12 Mar 2012 09:04:32 +0000 Subject: [PATCH] 0020750: EDF 1296 GEOM: Naming during STEP import Small fix. --- src/STEPImport/STEPImport.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.2