From: azv Date: Fri, 22 Apr 2016 15:07:27 +0000 (+0300) Subject: Message about fully constrained sketch X-Git-Tag: V_2.3.0~122 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a98571c4c3130377434476282b267f6b534c955d;p=modules%2Fshaper.git Message about fully constrained sketch --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 4342686da..b957601b0 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -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()); } }