]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Small improvement of names reading: skip names like 'Open CASCADE STEP translator...
authorjfa <jfa@opencascade.com>
Wed, 20 Oct 2010 06:31:47 +0000 (06:31 +0000)
committerjfa <jfa@opencascade.com>
Wed, 20 Oct 2010 06:31:47 +0000 (06:31 +0000)
src/STEPImport/STEPImport.cxx

index 0ba7854298f0b8acd5fcb5f649b6394255784b1a..1983470bca3bb3a38cb6ad135c33f29e0dee8cd1 100644 (file)
@@ -172,6 +172,13 @@ extern "C"
             Handle(TCollection_HAsciiString) aName = Prod->Name();
             TCollection_ExtendedString aNameExt (aName->ToCString());
 
+            // special check to pass names like "Open CASCADE STEP translator 6.3 1"
+            TCollection_AsciiString aSkipName ("Open CASCADE STEP translator");
+            if (aName->Length() >= aSkipName.Length()) {
+              if (aName->String().SubString(1, aSkipName.Length()).IsEqual(aSkipName))
+                continue;
+            }
+
             // find target shape
             Handle(Transfer_Binder) binder = TP->Find(enti);
             if (binder.IsNull()) continue;