From: dbv Date: Thu, 29 Dec 2016 09:29:03 +0000 (+0300) Subject: Issue #1957: error text when Build face X-Git-Tag: V_2.7.0~351^2~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fdd911ee6e8b447b57d7dc24b2880db0cebe2b21;p=modules%2Fshaper.git Issue #1957: error text when Build face Fixed error messages. --- diff --git a/src/BuildPlugin/BuildPlugin_Validators.cpp b/src/BuildPlugin/BuildPlugin_Validators.cpp index 87e52020a..fc93bc7df 100644 --- a/src/BuildPlugin/BuildPlugin_Validators.cpp +++ b/src/BuildPlugin/BuildPlugin_Validators.cpp @@ -192,6 +192,11 @@ bool BuildPlugin_ValidatorBaseForFace::isValid(const std::shared_ptr 1) { GeomAlgoAPI_PaveFiller aPaveFiller(anEdges, false); @@ -215,7 +220,7 @@ bool BuildPlugin_ValidatorBaseForFace::isValid(const std::shared_ptr aPln = GeomAlgoAPI_ShapeTools::findPlane(anEdges); if(!aPln.get()) { - theError = "Selected objects are not planar."; + theError = "Selected object(s) should belong to only one plane."; return false; } @@ -224,7 +229,7 @@ bool BuildPlugin_ValidatorBaseForFace::isValid(const std::shared_ptrlocation(), aPln->xDirection(), aPln->direction(), anEdges, aFaces); if(aFaces.empty()) { - theError = "Selected objects does not have closed contours."; + theError = "Selected objects do not generate closed contour."; return false; } diff --git a/src/BuildPlugin/BuildPlugin_msg_en.ts b/src/BuildPlugin/BuildPlugin_msg_en.ts index 025babe93..6405e316e 100644 --- a/src/BuildPlugin/BuildPlugin_msg_en.ts +++ b/src/BuildPlugin/BuildPlugin_msg_en.ts @@ -64,33 +64,25 @@ Empty attribute \"%1\". Objects not selected. - - - Face:BuildPlugin_ValidatorBaseForFace + + Objects not selected. + Objects not selected. + Error while checking if edges intersects. Error while checking if edges intersects. - - - Face:BuildPlugin_ValidatorBaseForFace Selected objects have intersections. Selected objects have intersections. - - - Face:BuildPlugin_ValidatorBaseForFace - Selected objects are not planar. - Selected objects are not planar. + Selected object(s) should belong to only one plane. + Selected object(s) should belong to only one plane. - - - Face:BuildPlugin_ValidatorBaseForFace - Selected objects does not have closed contours. - Selected objects does not have closed contours. + Selected objects do not generate closed contour. + Selected objects do not generate closed contour.