From fdd911ee6e8b447b57d7dc24b2880db0cebe2b21 Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 29 Dec 2016 12:29:03 +0300 Subject: [PATCH] Issue #1957: error text when Build face Fixed error messages. --- src/BuildPlugin/BuildPlugin_Validators.cpp | 9 ++++++-- src/BuildPlugin/BuildPlugin_msg_en.ts | 24 ++++++++-------------- 2 files changed, 15 insertions(+), 18 deletions(-) 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. -- 2.39.2