Logo Search packages:      
Sourcecode: k3dsurf version File versions  Download package

void Model3D::LagrangePolynome (  ) 

Initialisation :

Polynome construction :

Here we compute coefficients to use with Lagrangian Polynomes

Definition at line 27 of file Model3D.cpp.

References LagrangCoefX.

                              {
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) <nb_CurvePoints && (j+1) != i) {
            LagrangianX[i] += "*";
            LagrangianY[i] += "*";
        }
     }
  /// Here we compute coefficients to use with Lagrangian Polynomes
     for(i = 0; i < nb_CurvePoints -1; i++) {
     LagrangCoefX[i] = 0 ;
     LagrangCoefY[i] = 0;
     }
   }
}


Generated by  Doxygen 1.6.0   Back to index