Merge pull request #3339 from realthunder/FixPathSort

Path: fix path sort
This commit is contained in:
sliptonic
2020-04-13 08:46:31 -05:00
committed by GitHub

View File

@@ -1189,10 +1189,8 @@ static int foreachSubshape(const TopoDS_Shape &shape,
BRep_Builder builder;
TopoDS_Compound comp;
builder.MakeCompound(comp);
for(auto &s : openShapes) {
for(TopExp_Explorer it(s,TopAbs_EDGE); it.More(); it.Next())
builder.Add(comp,s);
}
for(auto &s : openShapes)
builder.Add(comp,s);
func(comp, TopAbs_COMPOUND);
return TopAbs_COMPOUND;
}