aGenTag++, aGenName + "Face", *aMapOfSubShapes.get());
}
- aResultBody->loadAndOrientGeneratedShapes(&thePipeAlgo, theBaseShape, aShapeTypeToExplode,
- aGenTag++, aGenName, *aMapOfSubShapes.get());
-
// Store from shapes.
int aFromTag = aGenTag;
storeShapes(aResultBody, aBaseShapeType, aMapOfSubShapes,
// If not found child label with the exact sub-name, then try to find compound with
// such sub-name without suffix.
Standard_Integer aSuffixPos = aSubName.SearchFromEnd('_');
- if (aSuffixPos != -1) {
+ if (aSuffixPos != -1 && aSuffixPos != aSubName.Length()) {
TCollection_ExtendedString anIndexStr = aSubName.Split(aSuffixPos);
aSubName.Remove(aSuffixPos);
aNamesIter.Initialize(aFind->second, TDataStd_Name::GetID(), Standard_True);