Salome HOME
Implememtation of evaluation for improvement 0019296.
authorskl <skl@opencascade.com>
Tue, 30 Jun 2009 12:19:47 +0000 (12:19 +0000)
committerskl <skl@opencascade.com>
Tue, 30 Jun 2009 12:19:47 +0000 (12:19 +0000)
doc/salome/gui/SMESH/images/mesh_evaluation_succeed.png [new file with mode: 0755]
doc/salome/gui/SMESH/input/constructing_meshes.doc
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
src/SMESHGUI/SMESH_msg_en.ts

diff --git a/doc/salome/gui/SMESH/images/mesh_evaluation_succeed.png b/doc/salome/gui/SMESH/images/mesh_evaluation_succeed.png
new file mode 100755 (executable)
index 0000000..b9aeb52
Binary files /dev/null and b/doc/salome/gui/SMESH/images/mesh_evaluation_succeed.png differ
index a0960e2..df93242 100644 (file)
@@ -145,9 +145,17 @@ existing faces</b>. They are not entirely usable from the GUI, so a
 mesh created using these algorithms should be exported into a python
 script, edited and then imported into the GUi. 
 
+<li>It is possible to make evaluation of size of prospective mesh
+before \b Compute operation. For this, select your mesh in the <b>Object
+Browser</b> and from the \b Mesh menu select \b Evaluate. Result of
+evaluation will be represented by the following information box:
+
+\image html mesh_evaluation_succeed.png
+
+
 Consider trying a sample script for construction of a mesh from our 
 \ref tui_creating_meshes_page "TUI Scripts" section.
 </li>
 </ol>
 
-*/
\ No newline at end of file
+*/
index 55e9ad3..1852b4b 100644 (file)
@@ -2019,7 +2019,8 @@ void SMESHGUI_BaseComputeOp::evaluateMesh()
   if ( memoryLack )
     aMemoryReserve.release();
 
-  myCompDlg->setWindowTitle(tr( evaluateFailed ? "SMESH_WRN_COMPUTE_FAILED" : "SMESH_COMPUTE_SUCCEED"));
+  evaluateFailed =  ( aCompErrors->length() > 0 );
+  myCompDlg->setWindowTitle(tr( evaluateFailed ? "SMESH_WRN_EVALUATE_FAILED" : "SMESH_EVALUATE_SUCCEED"));
 
   // SHOW ERRORS
   
index 10a95c8..edde69c 100644 (file)
@@ -967,6 +967,10 @@ Please enter correct values and try again</translation>
             <translation>Mesh computation succeed</translation>
         </message>
         <message>
+            <source>SMESH_EVALUATE_SUCCEED</source>
+            <translation>Mesh evaluation succeed</translation>
+        </message>
+        <message>
             <source>SMESH_CONTENT</source>
             <translation>Content</translation>
         </message>
@@ -1864,6 +1868,10 @@ Consider saving your work before application crash</translation>
             <translation>Mesh computation failed</translation>
         </message>
         <message>
+            <source>SMESH_WRN_EVALUATE_FAILED</source>
+            <translation>Mesh evaluation failed</translation>
+        </message>
+        <message>
             <source>SMESH_WRN_EMPTY_NAME</source>
             <translation>Empty name is not valid</translation>
         </message>