- Timestamp:
- 12/07/21 12:00:23 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/extern/remap/src/intersection_ym.cpp
r1588 r2269 186 186 if (dx*dx+dy*dy>fusion_vertex*fusion_vertex) 187 187 { 188 intersectPolygon[nv]=intersectPolygon[n] ; 189 190 vect_points.push_back( array<double, 2>() ); 191 vect_points[nv][0] = intersectPolygon[n].x; 192 vect_points[nv][1] = intersectPolygon[n].y; 193 194 nv++ ; 188 intersectPolygon[nv]=intersectPolygon[n] ; 189 vect_points.push_back( array<double, 2>() ); 190 vect_points[nv][0] = intersectPolygon[n].x; 191 vect_points[nv][1] = intersectPolygon[n].y; 192 nv++ ; 195 193 } 196 197 198 194 } 199 195 … … 209 205 for(int i=0;i<indices.size()/3;++i) 210 206 { 211 212 213 214 207 Coord x0 = Ox * polyline[0][indices[3*i]][0] + Oy* polyline[0][indices[3*i]][1] + Oz ; 208 Coord x1 = Ox * polyline[0][indices[3*i+1]][0] + Oy* polyline[0][indices[3*i+1]][1] + Oz ; 209 Coord x2 = Ox * polyline[0][indices[3*i+2]][0] + Oy* polyline[0][indices[3*i+2]][1] + Oz ; 210 area2+=triarea(x0 * (1./norm(x0)),x1* (1./norm(x1)), x2* (1./norm(x2))) ; 215 211 } 216 212
Note: See TracChangeset
for help on using the changeset viewer.