Changeset 2502 for XIOS2/trunk/extern/remap/src/meshutil.cpp
- Timestamp:
- 05/12/23 11:51:31 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS2/trunk/extern/remap/src/meshutil.cpp
r2500 r2502 61 61 bary = exact_barycentre(dstPolygon.data(),na) ; 62 62 63 // check signed area 63 // check signed area of polygons on gnomonic plan => if <0 then switch barycenter and invert vertex numbering 64 64 double signedArea = 0 ; 65 65 for(int n=0; n<na;n++) signedArea+= a_gno[n].x*a_gno[(n+1)%na].y-a_gno[(n+1)%na].x*a_gno[n].y ;
Note: See TracChangeset
for help on using the changeset viewer.