Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Functions to compute metric interpolation. More...
Go to the source code of this file.
Functions | |
int | MMG5_mmgIntmet33_ani (double *m, double *n, double *mr, double s) |
int | MMG5_intridmet (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int ip1, MMG5_int ip2, double s, double v[3], double mr[6]) |
int | MMG5_interp_iso (double *ma, double *mb, double *mp, double t) |
int | MMG5_interpreg_ani (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt, int8_t i, double s, double mr[6]) |
Functions to compute metric interpolation.
Definition in file intmet.c.
int MMG5_interp_iso | ( | double * | ma, |
double * | mb, | ||
double * | mp, | ||
double | t | ||
) |
int MMG5_interpreg_ani | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pTria | pt, | ||
int8_t | i, | ||
double | s, | ||
double | mr[6] | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
pt | pointer to the triangle structure. |
i | edge of the triangle pt |
s | interpolated parameter (comprise between 0 and 1) |
mr | computed interpolated metric |
Metric interpolation between points p1 and p2, in tria pt at parameter 0 <= s <= 1 from p1 result is stored in mr. edge p1p2 must not be a ridge
Definition at line 504 of file intmet.c.
int MMG5_intridmet | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_int | ip1, | ||
MMG5_int | ip2, | ||
double | s, | ||
double | v[3], | ||
double | mr[6] | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
ip1 | global index of ridge extremity. |
ip2 | global index of ridge extremity. |
s | interpolation parameter (between 0 and 1). |
v | normal at the point at which we want to compute the metric. |
mr | computed anisotropic size. |
Anisotropic metric interpolation between two points \(p_1\) and \(p_2\) such that \(edge_0 = (p_1p_2)\) is ridge. v is a direction vector, aimed at pointing towards direction of n1 at interpolated point.
Definition at line 163 of file intmet.c.
int MMG5_mmgIntmet33_ani | ( | double * | m, |
double * | n, | ||
double * | mr, | ||
double | s | ||
) |
m | input metric. |
n | input metric. |
mr | computed output metric. |
s | parameter coordinate for the interpolation of metrics m and n. |
Compute the interpolated \((3 x 3)\) metric from metrics m and n, at parameter s : \( mr = (1-s)*m +s*n \), both metrics being expressed in the simultaneous reduction basis: linear interpolation of sizes.
Definition at line 50 of file intmet.c.