source: XIOS3/trunk/extern/remap/src/polyg.hpp @ 2572

Last change on this file since 2572 was 2534, checked in by jderouillat, 12 months ago

Backport [2443,2500,2502], a shared_ptr bug in the remapper and convex cells

File size: 912 bytes
Line 
1#include "elt.hpp"
2
3namespace sphereRemap {
4
5
6Coord barycentre(const Coord *x, int n);
7
8void orient(int n, Coord *vertex, Coord *edge, double *d, const Coord &g);
9void switchOrientation(int N, Coord *vertex, Coord *edge, double *d) ;
10void normals(Coord *x, int n, Coord *a);
11
12double alun(double b, double d);
13
14double airbar(int N, const Coord *x, const Coord *c, double *d, const Coord &pole, Coord &gg);
15
16double polygonarea(Coord *x, int n);
17Coord exact_barycentre(const Coord *x, int n) ;
18Coord new_barycentre(const Coord *x, int n) ;
19
20int packedPolygonSize(const Elt& e);
21void packPolygon(const Elt& e, char *buffer, int& pos);
22void unpackPolygon(Elt& e, const char *buffer, int& pos);
23void packIntersection(const Elt& e, char *buffer, int& pos);
24void unpackIntersection(Elt *e, const char *buffer);
25int packIntersectionSize(const Elt& e);
26double triarea( const Coord& A, const Coord& B, const Coord& C) ;
27
28}
Note: See TracBrowser for help on using the repository browser.