]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix incorrect orientation of external arc (issue #1687)
authorazv <azv@opencascade.com>
Thu, 3 Nov 2016 05:25:43 +0000 (08:25 +0300)
committerazv <azv@opencascade.com>
Thu, 3 Nov 2016 05:25:43 +0000 (08:25 +0300)
src/PartSet/PartSet_Tools.cpp

index d88fd2ac20da9cfaa78d8898040c52feaee2aec7..5e526d36a527a2a20948f2eb01c4c5c18fe9e37e 100755 (executable)
@@ -502,6 +502,8 @@ ResultPtr PartSet_Tools::createFixedObjectByExternal(const TopoDS_Shape& theShap
       if (anEdge->isArc()) {
         // Create arc
         aMyFeature = theSketch->addFeature(SketchPlugin_Arc::ID());
+        if (theShape.Orientation() == TopAbs_REVERSED)
+          aMyFeature->boolean(SketchPlugin_Arc::INVERSED_ID())->setValue(true);
       }
       else {
         // Create circle