Implememtation of evaluation for improvement 0019296.

This commit is contained in:
skl 2009-06-30 12:19:47 +00:00
parent bb0c89d5a8
commit f91869c65c
4 changed files with 19 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View 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>
*/
*/

View 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

View File

@ -966,6 +966,10 @@ Please enter correct values and try again</translation>
<source>SMESH_COMPUTE_SUCCEED</source>
<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>
@ -1863,6 +1867,10 @@ Consider saving your work before application crash</translation>
<source>SMESH_WRN_COMPUTE_FAILED</source>
<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>