1.2.1
CCC
 
LinkSphTriangle.hpp File Reference
#include "gstlearn_export.hpp"
#include "geoslib_define.h"

Functions

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

Function Documentation

GSTLEARN_EXPORT int meshes_2D_sph_create ( int  verbose,
SphTriangle *  t 
)

Perform the spherical triangulation

Returns
Error return code
Parameters
[in]verboseVerbose option
[in]tSphTriangle structure
GSTLEARN_EXPORT 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
GSTLEARN_EXPORT 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
GSTLEARN_EXPORT 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
GSTLEARN_EXPORT 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
GSTLEARN_EXPORT 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
GSTLEARN_EXPORT 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