TechDraw: Fix finding outlines consisting of a single closed edge
This commit is contained in:
committed by
Yorik van Havre
parent
b7dc993ebe
commit
3ac01778f7
@@ -270,6 +270,8 @@ private:
|
||||
|
||||
std::vector<TopoDS_Edge> closedEdges;
|
||||
edgeList = DrawProjectSplit::scrubEdges(edgeList, closedEdges);
|
||||
// Need to also check closed edges- those are valid wires
|
||||
edgeList.insert( edgeList.end(), closedEdges.begin(), closedEdges.end() );
|
||||
|
||||
std::vector<TopoDS_Wire> sortedWires;
|
||||
try {
|
||||
@@ -326,6 +328,8 @@ private:
|
||||
|
||||
std::vector<TopoDS_Edge> closedEdges;
|
||||
edgeList = DrawProjectSplit::scrubEdges(edgeList, closedEdges);
|
||||
// Need to also check closed edges, since that may be the outline
|
||||
edgeList.insert( edgeList.end(), closedEdges.begin(), closedEdges.end() );
|
||||
|
||||
PyObject* outerWire = nullptr;
|
||||
std::vector<TopoDS_Wire> sortedWires;
|
||||
@@ -389,6 +393,8 @@ private:
|
||||
|
||||
std::vector<TopoDS_Edge> closedEdges;
|
||||
edgeList = DrawProjectSplit::scrubEdges(edgeList, closedEdges);
|
||||
// Need to also check closed edges, since that may be the outline
|
||||
edgeList.insert( edgeList.end(), closedEdges.begin(), closedEdges.end() );
|
||||
|
||||
PyObject* outerWire = nullptr;
|
||||
std::vector<TopoDS_Wire> sortedWires;
|
||||
|
||||
Reference in New Issue
Block a user