X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Symmetry.cpp;h=dbbecc9a7b44516071eedcaa5133dff1fc4bf5d7;hb=f2f34e30b41047d12277ad87e1adf6c0e410e4ff;hp=f5baf287d1ecfa6022197313eba7c13d6db7d924;hpb=698a1c427ab2537e7a96b5206d6987087b78f54f;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp index f5baf287d..dbbecc9a7 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp @@ -1,8 +1,22 @@ -// Copyright (C) 2014-2016 CEA/DEN, EDF R&D - -// File: GeomAlgoAPI_Symmetry.cpp -// Created: 30 Nov 2016 -// Author: Clarisse Genrault (CEA) +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #include "GeomAlgoAPI_Symmetry.h" @@ -41,33 +55,33 @@ bool GeomAlgoAPI_Symmetry::check() switch (myMethodType) { case BY_POINT: { if (!myPoint) { - myError = "Symmetry builder :: point is invalid."; + myError = "Symmetry builder :: point is not valid."; return false; } if (!mySourceShape) { - myError = "Symmetry builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is not valid."; return false; } return true; } case BY_AXIS: { if (!myAxis) { - myError = "Symmetry builder :: axis is invalid."; + myError = "Symmetry builder :: axis is not valid."; return false; } if (!mySourceShape) { - myError = "Symmetry builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is not valid."; return false; } return true; } case BY_PLANE: { if (!myPlane) { - myError = "Symmetry builder :: plane is invalid."; + myError = "Symmetry builder :: plane is not valid."; return false; } if (!mySourceShape) { - myError = "Symmetry builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is not valid."; return false; } return true; @@ -134,4 +148,4 @@ void GeomAlgoAPI_Symmetry::build() aShape->setImpl(new TopoDS_Shape(aResult)); setShape(aShape); setDone(true); -} \ No newline at end of file +}