#include "geoslib_old_f.h"#include "Basic/Utilities.hpp"#include "Matrix/MatrixSquareSymmetric.hpp"#include "Db/Db.hpp"#include "Basic/Memory.hpp"#include "Core/Keypair.hpp"#include "Model/Model.hpp"#include <math.h>Classes | |
| struct | Surf_Def |
Macros | |
| #define | MAT(i, j) (mat[3*(i) + (j)]) |
| #define | EIGVEC(i, j) (eigvec[3*(i) + (j)]) |
Functions | |
| static Surf_Def * | st_reference_manage (int mode, Surf_Def *surf_reference) |
| static void | st_normalize_vector (double *vect) |
| static int | st_reference_define (Db *db, int *iptr_init, Surf_Def *surf_reference) |
| static void | st_mima_init (double mima[2][3], int *nundefs) |
| static void | st_mima_process (double mima[2][3], double x, double y, double z, int *nundefs) |
| static void | st_mima_print (const char *title, double mima[2][3], int nundefs) |
| static void | st_transform_init2proj (Surf_Def *surf_reference, Db *db, int *iptr_init, int *iptr_proj) |
| static void | st_transform_proj2init (Surf_Def *surf_reference, int npoint, VectorDouble &points) |
| static int | st_selection_per_code (Db *db, int icode, int iptr_sel) |
| static int | st_concatenate_arrays (int ndim, int ntri, int npoints, VectorInt &triloc, VectorDouble &poiloc, int *ntri_arg, int *npoint_arg, VectorInt &triangles, VectorDouble &points) |
| static int | st_rectangle_surface (Surf_Def *surf_reference, int *ntri_arg, int *npoint_arg, VectorInt &triangles, VectorDouble &points) |
| int | db_trisurf (Db *db, Model *model, const String &triswitch, int icode0, int verbose, int *ncode_arg, int *ntri_arg, int *npoint_arg, double *codesel, VectorInt &ntcode, VectorInt &triangles, VectorDouble &points) |
Variables | |
| static int | VERBOSE = 0 |
| #define EIGVEC | ( | i, | |
| j | |||
| ) | (eigvec[3*(i) + (j)]) |
| #define MAT | ( | i, | |
| j | |||
| ) | (mat[3*(i) + (j)]) |
| int db_trisurf | ( | Db * | db, |
| Model * | model, | ||
| const String & | triswitch, | ||
| int | icode0, | ||
| int | verbose, | ||
| int * | ncode_arg, | ||
| int * | ntri_arg, | ||
| int * | npoint_arg, | ||
| double * | codesel, | ||
| VectorInt & | ntcode, | ||
| VectorInt & | triangles, | ||
| VectorDouble & | points | ||
| ) |
Free the triangleio structure
| [in] | db | Db structure |
| [in] | model | Model structure |
| [in] | triswitch | Triangulation option |
| [in] | icode0 | Reference Code attributed to the Target Fault |
| [in] | verbose | Verbose option |
| [out] | ncode_arg | Number of different codes |
| [out] | ntri_arg | Number of triangles |
| [out] | npoint_arg | Number of vertices |
| [out] | codesel | Selected code (if any) |
| [out] | ntcode | Array for the number of triangles per code |
| [out] | triangles | Array on the triangle corners |
| [out] | points | Array on the 3-D vertices coordinates |
|
static |
Concatenate the resulting arrays to the returned arrays
| [in] | ndim | Space dimension |
| [in] | ntri | Number of triangles |
| [in] | npoints | Number of vertices |
| [in] | triloc | Array on the triangle corners |
| [in] | poiloc | Array on the vertices coordinates |
| [out] | ntri_arg | Cumulated number of triangles |
| [out] | npoint_arg | Cumulated number of vertices |
| [out] | triangles | Cumulated array on the triangle corners |
| [out] | points | Cumulated array on the 3-D vertices coordinates |
|
static |
Initialize the minimum-maximum array
| [out] | mima | Statistics array |
| [out] | nundefs | Number of undefined values |
|
static |
Update the minimum-maximum array
| [in] | title | Title of the statistics |
| [in] | mima | Statistics array |
| [in] | nundefs | Number of undefined values |
|
static |
Print the minimum-maximum array
| [in,out] | mima | Statistics array |
| [in] | x,y,z | Coordinates |
| [in,out] | nundefs | Number of undefined values |
|
static |
Normalize the input vector
| [in,out] | vect | Vector to be normalized |
|
static |
Generate the surface as the rectangle containing the surface
Define the Projection new system by Total Least Squares
Manage the Projection system
| [in] | mode | Type operation (1: allocation; -1: deallocation) |
| [in] | surf_reference | Surf_Def structure (used for deallocation) |
|
static |
Select the samples corresponding to the target code (if defined)
| [in] | db | Db structure |
| [in] | icode | Reference Code value |
| [in] | iptr_sel | Pointer to the selection |
|
static |
Project the samples from the projected to the initial space
| [in] | surf_reference | Surf_Ref structure |
| [in] | npoint | Number of points |
| [in] | points | Array of 3-D coordinates |
|
static |