mmgs
mmgs1.c File Reference

Perform surface mesh adaptation. More...

#include "mmgs.h"
Include dependency graph for mmgs1.c:

Functions

int _MMGS_dichoto (MMG5_pMesh mesh, MMG5_pSol met, int k, int *vx)
 
int _MMGS_dichoto1b (MMG5_pMesh mesh, MMG5_pSol met, int iel, int ia, int ip)
 
int chkedg (MMG5_pMesh mesh, int iel)
 
static int swpmsh (MMG5_pMesh mesh, MMG5_pSol met, char typchk)
 
static int movtri (MMG5_pMesh mesh, MMG5_pSol met, int maxit)
 
static int _MMGS_delPatternPts (MMG5_pMesh mesh, _MMG5_Hash hash)
 
static int anaelt (MMG5_pMesh mesh, MMG5_pSol met, char typchk)
 
int chkspl (MMG5_pMesh mesh, MMG5_pSol met, int k, int i)
 
static int colelt (MMG5_pMesh mesh, MMG5_pSol met, char typchk)
 
static int adpspl (MMG5_pMesh mesh, MMG5_pSol met)
 
static int adpcol (MMG5_pMesh mesh, MMG5_pSol met)
 
static int adptri (MMG5_pMesh mesh, MMG5_pSol met)
 
static int anatri (MMG5_pMesh mesh, MMG5_pSol met, char typchk)
 
int _MMG5_mmgs1 (MMG5_pMesh mesh, MMG5_pSol met)
 

Variables

char ddb
 

Detailed Description

Perform surface mesh adaptation.

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

Function Documentation

◆ _MMG5_mmgs1()

int _MMG5_mmgs1 ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMGS_delPatternPts()

static int _MMGS_delPatternPts ( MMG5_pMesh  mesh,
_MMG5_Hash  hash 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
hashpointer toward the hash table of edges.
Returns
0 if failed, 1 if success

Delete the points inserted by pattern if the pattern step fail.

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

◆ _MMGS_dichoto()

int _MMGS_dichoto ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  k,
int *  vx 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
kelement index.
vxpointer toward table of edges to split.
Returns
1.

Find acceptable position for splitting.

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

◆ _MMGS_dichoto1b()

int _MMGS_dichoto1b ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  iel,
int  ia,
int  ip 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
ielindex of the starting triangle.
ialocal index of the edge to split in k.
ipindex of the point that we try to create.
Returns
1 if success, 0 otherwise.

Find acceptable position for _MMG5_split1b, starting from point ip.

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

◆ adpcol()

static int adpcol ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
-1 if failed.
number of deleted points.

Collapse edges of length smaller than _MMGS_LOPTS.

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

◆ adpspl()

static int adpspl ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
-1 if failed or number of new points.

Split edges of length bigger than _MMGS_LOPTL.

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

◆ adptri()

static int adptri ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ anaelt()

static int anaelt ( MMG5_pMesh  mesh,
MMG5_pSol  met,
char  typchk 
)
static
Parameters
meshpointer toward the mesh
metpointer toward the metric
typchktype of check performed depending on the remeshing step
Returns
-1 if fail, the number of split otherwise

Analyze triangles and split if needed

  1. Simulate splitting and delete points leading to invalid configurations
Here is the call graph for this function:
Here is the caller graph for this function:

◆ anatri()

static int anatri ( MMG5_pMesh  mesh,
MMG5_pSol  met,
char  typchk 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chkedg()

int chkedg ( MMG5_pMesh  mesh,
int  iel 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chkspl()

int chkspl ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  k,
int  i 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
kindex of element to split.
iindex of edge to split.
Returns
-1 if lack of memory, 0 if the edge should not be split and 1 if success.

Check if splitting edge i of element k is ok.

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

◆ colelt()

static int colelt ( MMG5_pMesh  mesh,
MMG5_pSol  met,
char  typchk 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ movtri()

static int movtri ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  maxit 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ swpmsh()

static int swpmsh ( MMG5_pMesh  mesh,
MMG5_pSol  met,
char  typchk 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ddb

char ddb