Refactor all element name pairs into clearer struct names - renames

This commit is contained in:
bgbsww
2024-07-19 16:23:27 -04:00
parent d4d40efbc5
commit 19e450a667
27 changed files with 268 additions and 267 deletions

View File

@@ -203,7 +203,7 @@ std::vector<TopoShape> DressUp::getContinuousEdges(const TopoShape& shape)
for (const auto& v : Base.getShadowSubs()) {
TopoDS_Shape subshape;
const auto& ref = v.first.size() ? v.first : v.second;
const auto& ref = v.newName.size() ? v.newName : v.oldName;
subshape = shape.getSubShape(ref.c_str(), true);
if (subshape.IsNull()) {
FC_THROWM(Base::CADKernelError, "Invalid edge link: " << ref);
@@ -236,7 +236,7 @@ std::vector<TopoShape> DressUp::getFaces(const TopoShape& shape)
continue;
}
auto& sub = subs[i++];
auto& ref = sub.first.size() ? sub.first : val;
auto& ref = sub.newName.size() ? sub.newName : val;
TopoShape subshape;
try {
subshape = shape.getSubTopoShape(ref.c_str());