Changeset 21867


Ignore:
Timestamp:
07/25/17 13:32:24 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: no more qualite function

Location:
issm/trunk-jpl/src/c/bamg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/bamg/Mesh.h

    r21865 r21867  
    168168                int j=i;i=on->AdjVertexIndex[i];on=on->Adj[j];
    169169        }
    170         inline double qualite(const BamgVertex &va,const BamgVertex &vb,const BamgVertex &vc){
    171                 double ret;
    172                 I2 ia=va,ib=vb,ic=vc;
    173                 I2 ab=ib-ia,bc=ic-ib,ac=ic-ia;
    174                 long long deta=Det(ab,ac);
    175                 if (deta <=0) ret = -1;
    176                 else {
    177                         double a = sqrt((double) (ac,ac)),
    178                                          b = sqrt((double) (bc,bc)),
    179                                          c = sqrt((double) (ab,ab)),
    180                                          p = a+b+c;
    181                         double h= Max(Max(a,b),c),ro=deta/p;
    182                         ret = ro/h;
    183                 }
    184                 return ret;
    185         }
    186 
    187170}
    188171#endif
  • issm/trunk-jpl/src/c/bamg/Triangle.h

    r21791 r21867  
    6060
    6161                        //Inline methods
    62                         double qualite() ;
    6362                        void  Set(const Triangle &,const Mesh &,Mesh &);
    6463                        int   In(BamgVertex *v) const { return vertices[0]==v || vertices[1]==v || vertices[2]==v ;}
Note: See TracChangeset for help on using the changeset viewer.