Warning, /include/opencascade/Plate_Plate.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1995-10-21
0002 // Created by: Andre LIEUTIER
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <gp_XY.hxx>
0018 #include <gp_XYZ.hxx>
0019
0020 inline Standard_Real Plate_Plate::Polm(const gp_XY& point2d, const Standard_Integer iu, const Standard_Integer iv,
0021 const Standard_Integer idu, const Standard_Integer idv) const
0022 {
0023 if(idu>iu) return 0;
0024 if(idv>iv) return 0;
0025 Standard_Real u = point2d.X();
0026 Standard_Real v = point2d.Y();
0027
0028 Standard_Real value = 1;
0029
0030 Standard_Integer degu = iu - idu;
0031 Standard_Integer i ;
0032 for( i=0;i<degu;i++) value *= u;
0033 for(i=iu;i>degu;i--) value *= i;
0034
0035
0036 Standard_Integer degv = iv - idv;
0037 for(i=0;i<degv;i++) value *= v;
0038 for(i=iv;i>degv;i--) value *= i;
0039
0040
0041 // le produit par ddu[iu]*ddv[iv] n'est pas indispensable !! (il change
0042 // les valeurs claculles pour la partie coef polynomiaux de Sol
0043 // de telle facon que les methodes Evaluate et EvaluateDerivative donnent
0044 //en theorie les memes valeurs. Toutefois, il nous semble que ce produit
0045 // ameliore le conditionnmenet de la matrice
0046 return value*ddu[iu]*ddv[iv];
0047 //return value;
0048 }
0049
0050 inline Standard_Integer& Plate_Plate::Deru(const Standard_Integer index) const
0051 {
0052 return ((Standard_Integer *)deru)[index];
0053 }
0054
0055 inline Standard_Integer& Plate_Plate::Derv(const Standard_Integer index) const
0056 {
0057 return ((Standard_Integer *)derv)[index];
0058 }
0059
0060 inline gp_XYZ& Plate_Plate::Solution(const Standard_Integer index) const
0061 {
0062 return ((gp_XYZ *)solution)[index];
0063 }
0064
0065 inline gp_XY& Plate_Plate::Points(const Standard_Integer index) const
0066 {
0067 return ((gp_XY *)points)[index];
0068 }
0069
0070