From 41035d87c5caab2771e9bddd3fa2dc07e57548ab Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 8 Jun 2016 16:10:29 +0300 Subject: [PATCH] Eliminate instability in Platine test case --- src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp | 2 +- src/PythonAPI/examples/Platine.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp index 7ee838ba2..880273df2 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp @@ -115,7 +115,7 @@ void GeomAlgoAPI_SketchBuilder::createFaces( if (!aStartFound) { const TopoDS_Edge& anEdge = TopoDS::Edge(anExp.Current()); TopoDS_Vertex aV1, aV2; - TopExp::Vertices(anEdge, aV1, aV2); + TopExp::Vertices(anEdge, aV1, aV2, Standard_True); if (aV1.IsSame(aStartVertex) == Standard_True) aStartFound = true; else diff --git a/src/PythonAPI/examples/Platine.py b/src/PythonAPI/examples/Platine.py index 05f985b54..727a0cdb6 100644 --- a/src/PythonAPI/examples/Platine.py +++ b/src/PythonAPI/examples/Platine.py @@ -60,7 +60,7 @@ def vertical_body(): def bottom_body(): # Create XOY sketch - sketch = model.addSketch(part, "Extrusion_1_1/Generated_Face_4") + sketch = model.addSketch(part, "Extrusion_1_1/Generated_Face_3") # Create base polygon points = [(0, 0), (0, L), (P, L), (P, 16 + 16), (P - 20, 16 + 16), (P - 20, 16), (P, 16), (P, 0)] @@ -93,7 +93,7 @@ def bottom_body(): sketch.setCoincident(arc.endPoint(), h1.startPoint()) # Binding - left_e = sketch.addLine("Extrusion_1_1/Generated_Face_4&Extrusion_1_1/To_Face_1_1") + left_e = sketch.addLine("Extrusion_1_1/Generated_Face_3&Extrusion_1_1/To_Face_1_1") sketch.setCoincident(left_e.startPoint(), left.endPoint()) sketch.setCoincident(left_e.endPoint(), left.startPoint()) -- 2.39.2