projects
/
opencascade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6521598
)
[PATCH 3/7] BRepFill_Filling: WireFromList: We can't assume that a connected edge...
author
blobfish
<blobfish@gmx.com>
Tue, 29 Sep 2020 10:41:32 +0000
(06:41 -0400)
committer
Kurt Kremitzki
<kkremitzki@debian.org>
Sun, 24 Jan 2021 01:02:43 +0000
(
01:02
+0000)
Gbp-Pq: Name 0003-BRepFill_Filling-WireFromList-We-can-t-assume-that-a.patch
src/BRepFill/BRepFill_Filling.cxx
patch
|
blob
|
history
diff --git
a/src/BRepFill/BRepFill_Filling.cxx
b/src/BRepFill/BRepFill_Filling.cxx
index d45e19c3f97765f7621f5ac728055f6358d365a3..1d665682edebe9942dfca00bf6f32d52e750ec86 100644
(file)
--- a/
src/BRepFill/BRepFill_Filling.cxx
+++ b/
src/BRepFill/BRepFill_Filling.cxx
@@
-105,6
+105,7
@@
static TopoDS_Wire WireFromList(TopTools_ListOfShape& Edges)
while (!Edges.IsEmpty())
{
TopTools_ListIteratorOfListOfShape itl(Edges);
+ bool found = false;
for (; itl.More(); itl.Next())
{
anEdge = TopoDS::Edge(itl.Value());
@@
-127,11
+128,17
@@
static TopoDS_Wire WireFromList(TopTools_ListOfShape& Edges)
anEdge.Reverse();
V2 = V3;
}
+ found = true;
break;
}
}
- BB.Add(aWire, anEdge);
- Edges.Remove(itl);
+ if (found)
+ {
+ BB.Add(aWire, anEdge);
+ Edges.Remove(itl);
+ }
+ else
+ break;
}
aWire.Closed(Standard_True);