Old OCC compatibility

This commit is contained in:
Thomas Krijnen
2019-11-22 13:12:39 +01:00
parent a2418cf260
commit bfaa9ed5f9
+3 -2
View File
@@ -1146,11 +1146,12 @@ namespace {
// @todo this creates the ancestor map twice
TopExp::Vertices(wire, v0, v1);
TopTools_ListOfShape es;
while (!v0.IsSame(v1)) {
if (!map.FindFromKey(v0, es)) {
if (!map.Contains(v0)) {
throw std::runtime_error("Disconnected vertex");
}
const TopTools_ListOfShape& es = map.FindFromKey(v0);
TopoDS_Vertex ve0, ve1;
TopTools_ListIteratorOfListOfShape it(es);
bool added = false;