#include "gmtsph.hpp"
#include "Db/Db.hpp"
#include "Basic/Law.hpp"
#include "Basic/MathFunc.hpp"
#include "Geometry/GeometryHelper.hpp"
#include "Mesh/AMesh.hpp"
#include "Mesh/LinkSphTriangle.hpp"
#include "Basic/Memory.hpp"
#include "Core/Keypair.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) |
#define COORD | ( | i, | |
j | |||
) | (coord[3 * (j) + (i)]) |
#define DEBUG 0 |
int meshes_2D_sph_create | ( | int | verbose, |
SphTriangle * | t | ||
) |
Perform the spherical triangulation
[in] | verbose | Verbose option |
[in] | t | SphTriangle structure |
void meshes_2D_sph_free | ( | SphTriangle * | t, |
int | mode | ||
) |
Free the structure for triangles on a sphere
[in] | t | Pointer to the SphTriangle structure to be freed |
[in] | mode | 1 for partial deallocation 0 for total deallocation |
int meshes_2D_sph_from_auxiliary | ( | const String & | triswitch, |
SphTriangle * | t | ||
) |
Add auxiliary random points
[in] | triswitch | Triangulation option |
[in] | t | SphTriangle structure |
int meshes_2D_sph_from_db | ( | Db * | db, |
SphTriangle * | t | ||
) |
Define the memory areas by reading information from Db
[in] | db | Db structure where data are located |
[in] | t | Pointer to the SphTriangle structure to be loaded |
int meshes_2D_sph_from_points | ( | int | nech, |
double * | x, | ||
double * | y, | ||
SphTriangle * | t | ||
) |
Add fixed points to modify the SphTriangle structure
[in] | nech | Number of added samples |
[in] | x,y | Array containing the coordinates of added points |
[in] | t | Pointer to the SphTriangle structure to be loaded |
void meshes_2D_sph_init | ( | SphTriangle * | t | ) |
Initialize the structure for triangles on a sphere
[in] | t | Pointer to the SphTriangle structure to be initialized |
void meshes_2D_sph_print | ( | SphTriangle * | t, |
int | brief | ||
) |
Print the contents of the SphTriangle structure
[in] | t | Pointer to the SphTriangle structure to be printed |
[in] | brief | 1 for a brief output; 0 otherwise |