/*************************************************************************** * Copyright (C) 2007 by Abderrahman Taha * * * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor,Boston, MA 02110-1301 USA * ***************************************************************************/ #include #include "Model3D.h" using std::string; using std::vector; using std::list; ///+++++++++++++++++++++++++++++++++++++++++ void Model3D::RunPovScript(){ }; ///+++++++++++++++++++++++++++++++++++++++++ void Model3D::stopcalculations(){ }; ///+++++++++++++++++++++++++++++++++++++++++ void Model3D::LagrangePolynome(){ int i,j; /// Initialisation : for(i = 0; i < nb_CurvePoints; i++) { LagrangianX[i] = ""; LagrangianY[i] = ""; } /// Polynome construction : if( nb_CurvePoints > 1) { for(i = 0; i < nb_CurvePoints -1; i++) for(j=0; j < nb_CurvePoints && j != i ; j++){ LagrangianX[i] += "(u - "+QString::number(CurvePointsXY[0][j])+")"; LagrangianY[i] += "(v - "+QString::number(CurvePointsXY[1][j])+")"; if((j+1)