Changeset 13367
- Timestamp:
- 09/13/12 14:45:02 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Exp/IsInPolySerial.cpp
r8301 r13367 24 24 y0=y[i]; 25 25 if (pnpoly(numvertices,xc,yc,x0,y0,edgevalue)){ 26 in[i]=1 ;26 in[i]=1.; 27 27 } 28 28 else{ 29 in[i]=0 ;29 in[i]=0.; 30 30 } 31 31 } -
issm/trunk-jpl/src/c/shared/TriMesh/GridInsideHole.cpp
r13366 r13367 14 14 int GridInsideHole(double* px0,double* py0,int n,double* x,double* y){ 15 15 16 double flag=0. ;16 double flag=0.0; 17 17 double xA,xB,xC,xD,xE; 18 18 double yA,yB,yC,yD,yE; … … 30 30 /*D and E are on each side of segment [A B], on the median line between segment [A B], 31 31 *at an angle of 10 degree (less than the minimum 30 enforced by the quality of the mesh: */ 32 33 34 32 xD=xC+tan(10./180.*M_PI)*(yC-yA); 35 33 yD=yC+tan(10./180.*M_PI)*(xA-xC); 36 37 34 xE=xC-tan(10./180.*M_PI)*(yC-yA); 38 35 yE=yC-tan(10./180.*M_PI)*(xA-xC); … … 40 37 /*Either E or D is inside profile (x,y): */ 41 38 IsInPolySerial(&flag,&xD,&yD,1,x,y,n,2); 42 if (flag){ 39 /*FIXME: used to be 'flag' and not '!flag', check*/ 40 if(!flag){ 43 41 /*D is inside the poly: */ 44 42 *px0=xD;
Note:
See TracChangeset
for help on using the changeset viewer.