From: skl Date: Tue, 30 Jun 2009 12:19:47 +0000 (+0000) Subject: Implememtation of evaluation for improvement 0019296. X-Git-Tag: V5_1_3rc1~152 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f91869c65cc3a9994a47f7363733aedb7cfce6d5;p=modules%2Fsmesh.git Implememtation of evaluation for improvement 0019296. --- 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 index 000000000..b9aeb522f Binary files /dev/null and b/doc/salome/gui/SMESH/images/mesh_evaluation_succeed.png differ diff --git a/doc/salome/gui/SMESH/input/constructing_meshes.doc b/doc/salome/gui/SMESH/input/constructing_meshes.doc index a0960e2ea..df932426f 100644 --- a/doc/salome/gui/SMESH/input/constructing_meshes.doc +++ b/doc/salome/gui/SMESH/input/constructing_meshes.doc @@ -145,9 +145,17 @@ existing faces. 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. +
  • It is possible to make evaluation of size of prospective mesh +before \b Compute operation. For this, select your mesh in the Object +Browser 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.
  • -*/ \ No newline at end of file +*/ diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 55e9ad332..1852b4b61 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -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 diff --git a/src/SMESHGUI/SMESH_msg_en.ts b/src/SMESHGUI/SMESH_msg_en.ts index 10a95c873..edde69cc3 100644 --- a/src/SMESHGUI/SMESH_msg_en.ts +++ b/src/SMESHGUI/SMESH_msg_en.ts @@ -966,6 +966,10 @@ Please enter correct values and try again SMESH_COMPUTE_SUCCEED Mesh computation succeed + + SMESH_EVALUATE_SUCCEED + Mesh evaluation succeed + SMESH_CONTENT Content @@ -1863,6 +1867,10 @@ Consider saving your work before application crash SMESH_WRN_COMPUTE_FAILED Mesh computation failed + + SMESH_WRN_EVALUATE_FAILED + Mesh evaluation failed + SMESH_WRN_EMPTY_NAME Empty name is not valid