]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Message about fully constrained sketch
authorazv <azv@opencascade.com>
Fri, 22 Apr 2016 15:07:27 +0000 (18:07 +0300)
committerazv <azv@opencascade.com>
Fri, 22 Apr 2016 15:07:49 +0000 (18:07 +0300)
src/SketchSolver/SketchSolver_Manager.cpp

index 4342686da192f415b4151413b9982d7cf39ac8c7..b957601b0cf1d299030ad609e433e31097f32465 100644 (file)
@@ -579,7 +579,10 @@ void SketchSolver_Manager::degreesOfFreedom()
     myDoF[aDoFIt->first] = aDoFIt->second;
     // change attribute value
     std::ostringstream aStream;
-    aStream << "DOF(degree of freedom) = " << aDoFIt->second;
+    if (aDoFIt->second == 0)
+      aStream << "Sketch fully fixed (DOF = " << aDoFIt->second << ")";
+    else
+      aStream << "DOF (degree of freedom) = " << aDoFIt->second;
     aDoFIt->first->data()->string(SketchPlugin_Sketch::SOLVER_DOF())->setValue(aStream.str());
   }
 }