Path: fix path sort

This commit is contained in:
Zheng, Lei
2020-04-13 14:33:11 +08:00
parent 4045b2fa3c
commit 7dc60feab0

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;
}