Changeset 21867
- Timestamp:
- 07/25/17 13:32:24 (8 years ago)
- Location:
- issm/trunk-jpl/src/c/bamg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/Mesh.h
r21865 r21867 168 168 int j=i;i=on->AdjVertexIndex[i];on=on->Adj[j]; 169 169 } 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 187 170 } 188 171 #endif -
issm/trunk-jpl/src/c/bamg/Triangle.h
r21791 r21867 60 60 61 61 //Inline methods 62 double qualite() ;63 62 void Set(const Triangle &,const Mesh &,Mesh &); 64 63 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.