]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Arc orientation when loading document (issue #1677)
authorazv <azv@opencascade.com>
Tue, 6 Sep 2016 04:10:02 +0000 (07:10 +0300)
committerazv <azv@opencascade.com>
Tue, 6 Sep 2016 04:10:02 +0000 (07:10 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index e295aa8f44e762a3a757beaa9a35123598ea1b73..07c4d3ee5649abb0ab136380105425b5a471c4a3 100644 (file)
@@ -145,6 +145,9 @@ void SketchPlugin_Arc::execute()
     AttributeBooleanPtr isInversed =
         std::dynamic_pointer_cast<ModelAPI_AttributeBoolean>(attribute(INVERSED_ID()));
 
+    // compute end parameter
+    aCircleForArc->parameter(anEndAttr->pnt(), paramTolerance, myParamBefore);
+
     std::shared_ptr<GeomAPI_Shape> aCircleShape;
     if(!isInversed->value()) {
       aCircleShape = GeomAlgoAPI_EdgeBuilder::lineCircleArc(aCenter, aStartPoint, aEndPoint, aNormal);