From 0edb21dc296d8ae738715059e6b0ec4159e3e507 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 20 Oct 2010 06:31:47 +0000 Subject: [PATCH] Small improvement of names reading: skip names like 'Open CASCADE STEP translator...'. --- src/STEPImport/STEPImport.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/STEPImport/STEPImport.cxx b/src/STEPImport/STEPImport.cxx index 0ba785429..1983470bc 100644 --- a/src/STEPImport/STEPImport.cxx +++ b/src/STEPImport/STEPImport.cxx @@ -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; -- 2.39.2