From: azv Date: Wed, 8 Jun 2016 13:10:29 +0000 (+0300) Subject: Eliminate instability in Platine test case X-Git-Tag: V_2.4.0~126 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41035d87c5caab2771e9bddd3fa2dc07e57548ab;p=modules%2Fshaper.git Eliminate instability in Platine test case --- 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())