1.4.0
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

◆ meshes_2D_sph_create()

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

◆ meshes_2D_sph_free()

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

◆ meshes_2D_sph_from_auxiliary()

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

◆ meshes_2D_sph_from_db()

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

◆ meshes_2D_sph_from_points()

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

◆ meshes_2D_sph_init()

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

◆ meshes_2D_sph_print()

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