Toponaming: Fix PropertyTopoShape restore; tweak Loft test; missing TopoShape method.

This commit is contained in:
bgbsww
2024-08-05 11:18:56 -04:00
committed by Chris Hennes
parent 9b898346a7
commit a0b44f8405
7 changed files with 101 additions and 73 deletions

View File

@@ -5902,6 +5902,24 @@ long TopoShape::isElementGenerated(const Data::MappedName& _name, int depth) con
return res;
}
void TopoShape::reTagElementMap(long tag, App::StringHasherRef hasher, const char* postfix)
{
if (!tag) {
FC_WARN("invalid shape tag for re-tagging");
return;
}
if (_Shape.IsNull())
return;
TopoShape tmp(*this);
initCache(1);
Hasher = hasher;
Tag = tag;
resetElementMap();
copyElementMap(tmp, postfix);
}
void TopoShape::cacheRelatedElements(const Data::MappedName& name,
HistoryTraceType sameType,
const QVector<Data::MappedElement>& names) const