Improved chamfer behavior when faces are selected

Improved chamfer behavior when faces are selected and non equal chamfer types are used
This commit is contained in:
troyp76
2021-09-18 01:03:09 +10:00
parent 7a1f16774d
commit b3dbcd9ff8
3 changed files with 39 additions and 8 deletions

View File

@@ -99,6 +99,13 @@ Part::Feature *DressUp::getBaseObject(bool silent) const
void DressUp::getContinuousEdges(Part::TopoShape TopShape, std::vector< std::string >& SubNames) {
std::vector< std::string > FaceNames;
getContinuousEdges(TopShape, SubNames, FaceNames);
}
void DressUp::getContinuousEdges(Part::TopoShape TopShape, std::vector< std::string >& SubNames, std::vector< std::string >& FaceNames) {
TopTools_IndexedMapOfShape mapOfEdges;
TopTools_IndexedDataMapOfShapeListOfShape mapEdgeFace;
TopExp::MapShapesAndAncestors(TopShape.getShape(), TopAbs_EDGE, TopAbs_FACE, mapEdgeFace);
@@ -153,6 +160,7 @@ void DressUp::getContinuousEdges(Part::TopoShape TopShape, std::vector< std::str
}
FaceNames.push_back(aSubName.c_str());
SubNames.erase(SubNames.begin()+i);
}
// empty name or any other sub-element