X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FINTERP_KERNEL%2FInterpolationCurve.txx;h=35e78917290425591dfe5e7bd5ec0ff435b28513;hb=943d5f6fa12e585a425212a5fc6bd657a535a7b4;hp=86ec617440b4e54b9c519f0d1fd85dc579cbc3df;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/INTERP_KERNEL/InterpolationCurve.txx b/src/INTERP_KERNEL/InterpolationCurve.txx index 86ec61744..35e789172 100644 --- a/src/INTERP_KERNEL/InterpolationCurve.txx +++ b/src/INTERP_KERNEL/InterpolationCurve.txx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2015 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. +// 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 @@ -16,6 +16,7 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Author : Anthony Geay (CEA/DEN) #ifndef __INTERPOLATIONCURVE_TXX__ #define __INTERPOLATIONCURVE_TXX__ @@ -71,10 +72,10 @@ namespace INTERP_KERNEL */ template template - int InterpolationCurve::interpolateMeshes (const MyMeshType& myMeshS, - const MyMeshType& myMeshT, - MatrixType& result, - const char * method) + int InterpolationCurve::interpolateMeshes (const MyMeshType& myMeshS, + const MyMeshType& myMeshT, + MatrixType& result, + const std::string& method) { static const int SPACEDIM=MyMeshType::MY_SPACEDIM; typedef typename MyMeshType::MyConnType ConnType; @@ -87,8 +88,7 @@ namespace INTERP_KERNEL long nbMailleT = myMeshT.getNumberOfElements(); CurveIntersector* intersector=0; - std::string meth(method); - if(meth=="P0P0") + if(method=="P0P0") { intersector = new CurveIntersectorP0P0 (myMeshT, myMeshS, @@ -97,7 +97,7 @@ namespace INTERP_KERNEL InterpolationOptions::getMedianPlane(), InterpolationOptions::getPrintLevel()); } - else if(meth=="P0P1") + else if(method=="P0P1") { intersector = new CurveIntersectorP0P1 (myMeshT, myMeshS, @@ -106,7 +106,7 @@ namespace INTERP_KERNEL InterpolationOptions::getMedianPlane(), InterpolationOptions::getPrintLevel()); } - else if(meth=="P1P0") + else if(method=="P1P0") { intersector = new CurveIntersectorP1P0 (myMeshT, myMeshS, @@ -115,7 +115,7 @@ namespace INTERP_KERNEL InterpolationOptions::getMedianPlane(), InterpolationOptions::getPrintLevel()); } - else if(meth=="P1P1") + else if(method=="P1P1") { intersector = new CurveIntersectorP1P1 (myMeshT, myMeshS,