]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Eliminate instability in Platine test case
authorazv <azv@opencascade.com>
Wed, 8 Jun 2016 13:10:29 +0000 (16:10 +0300)
committerazv <azv@opencascade.com>
Wed, 8 Jun 2016 13:10:29 +0000 (16:10 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp
src/PythonAPI/examples/Platine.py

index 7ee838ba2909892f3f7fdd6c610ec5b295558d70..880273df25fe4665fa09d37cd3649dfca5df5be9 100644 (file)
@@ -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
index 05f985b546329a3bbbcc364e5c1d19fba2488fdd..727a0cdb61c6a064c2a8f4f6c89fe91c4d03f0e8 100644 (file)
@@ -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())