1.1.0
CCC
 
LinkSphTriangle.cpp File Reference
#include "gmtsph.hpp"
#include "geoslib_old_f.h"
#include "Db/Db.hpp"
#include "Db/DbGrid.hpp"
#include "Basic/Law.hpp"
#include "Basic/MathFunc.hpp"
#include "Mesh/AMesh.hpp"
#include "Mesh/MeshSpherical.hpp"
#include "Mesh/LinkSphTriangle.hpp"
#include <math.h>

Macros

#define COORD(i, j)   (coord[3 * (j) + (i)])
 
#define DEBUG   0
 

Functions

void meshes_2D_sph_init (SphTriangle *t)
 
void meshes_2D_sph_free (SphTriangle *t, int mode)
 
int meshes_2D_sph_from_db (Db *db, SphTriangle *t)
 
int meshes_2D_sph_from_points (int nech, double *x, double *y, SphTriangle *t)
 
int meshes_2D_sph_from_auxiliary (const String &triswitch, SphTriangle *t)
 
void meshes_2D_sph_print (SphTriangle *t, int brief)
 
int meshes_2D_sph_create (int verbose, SphTriangle *t)
 

Macro Definition Documentation

#define COORD (   i,
 
)    (coord[3 * (j) + (i)])
#define DEBUG   0

Function Documentation

int meshes_2D_sph_create ( int  verbose,
SphTriangle *  t 
)

Perform the spherical triangulation

Returns
Error return code
Parameters
[in]verboseVerbose option
[in]tSphTriangle structure
void meshes_2D_sph_free ( SphTriangle *  t,
int  mode 
)

Free the structure for triangles on a sphere

Parameters
[in]tPointer to the SphTriangle structure to be freed
[in]mode1 for partial deallocation 0 for total deallocation
int meshes_2D_sph_from_auxiliary ( const String triswitch,
SphTriangle *  t 
)

Add auxiliary random points

Parameters
[in]triswitchTriangulation option
[in]tSphTriangle structure
Remarks
This function adds the vertices to an existing SphTriangle structure
int meshes_2D_sph_from_db ( Db db,
SphTriangle *  t 
)

Define the memory areas by reading information from Db

Parameters
[in]dbDb structure where data are located
[in]tPointer to the SphTriangle structure to be loaded
Remarks
This function adds vertices to an existing SphTriangle structure
A conversion is launched to convert the 2-D information
(longitude,latitude) into 3-D coordinates
int meshes_2D_sph_from_points ( int  nech,
double *  x,
double *  y,
SphTriangle *  t 
)

Add fixed points to modify the SphTriangle structure

Parameters
[in]nechNumber of added samples
[in]x,yArray containing the coordinates of added points
[in]tPointer to the SphTriangle structure to be loaded
Remarks
This function adds the vertices to an existing
SphTriangle structure
void meshes_2D_sph_init ( SphTriangle *  t)

Initialize the structure for triangles on a sphere

Parameters
[in]tPointer to the SphTriangle structure to be initialized
void meshes_2D_sph_print ( SphTriangle *  t,
int  brief 
)

Print the contents of the SphTriangle structure

Parameters
[in]tPointer to the SphTriangle structure to be printed
[in]brief1 for a brief output; 0 otherwise