Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
intmet.c File Reference

Functions to compute metric interpolation. More...

#include "mmgcommon_private.h"
#include "mmgexterns_private.h"
Include dependency graph for intmet.c:

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])
 

Detailed Description

Functions to compute metric interpolation.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5

Definition in file intmet.c.

Function Documentation

◆ MMG5_interp_iso()

int MMG5_interp_iso ( double *  ma,
double *  mb,
double *  mp,
double  t 
)
Parameters
mapointer on a metric
mbpointer on a metric
mppointer on the computed interpolated metric
tinterpolation parameter (comprise between 0 and 1)

Linear interpolation of isotropic sizemap along an edge

Definition at line 484 of file intmet.c.

Here is the caller graph for this function:

◆ MMG5_interpreg_ani()

int MMG5_interpreg_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTria  pt,
int8_t  i,
double  s,
double  mr[6] 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
ptpointer toward the triangle structure.
iedge of the triangle pt
sinterpolated parameter (comprise between 0 and 1)
mrcomputed interpolated metric
Returns
0 if fail, 1 otherwise.

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG5_intridmet()

int MMG5_intridmet ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  ip1,
MMG5_int  ip2,
double  s,
double  v[3],
double  mr[6] 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
ip1global index of ridge extremity.
ip2global index of ridge extremity.
sinterpolation parameter (between 0 and 1).
vnormal at the point at which we want to compute the metric.
mrcomputed anisotropic size.
Returns
1 if success, 0 otherwise.

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.

Here is the caller graph for this function:

◆ MMG5_mmgIntmet33_ani()

int MMG5_mmgIntmet33_ani ( double *  m,
double *  n,
double *  mr,
double  s 
)
Parameters
minput metric.
ninput metric.
mrcomputed output metric.
sparameter coordinate for the interpolation of metrics m and n.
Returns
0 if fail, 1 otherwise.

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.

Here is the call graph for this function:
Here is the caller graph for this function: