Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Macros | Functions
delone_2d.c File Reference
#include "libmmg2d_private.h"
Include dependency graph for delone_2d.c:

Go to the source code of this file.

Macros

#define MMG2D_AREAMIN   1e-15
 
#define KTA   7
 
#define KTB   11
 

Functions

static int MMG2D_correction_iso (MMG5_pMesh mesh, MMG5_int ip, MMG5_int *list, int ilist, int nedep)
 
static int MMG2D_hashEdgeDelone (MMG5_pMesh mesh, MMG5_Hash *hash, MMG5_int iel, int i)
 
int MMG2D_cavity (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int ip, MMG5_int *list)
 
int MMG2D_delone (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int ip, MMG5_int *list, int ilist)
 

Macro Definition Documentation

◆ KTA

#define KTA   7

Definition at line 27 of file delone_2d.c.

◆ KTB

#define KTB   11

Definition at line 28 of file delone_2d.c.

◆ MMG2D_AREAMIN

#define MMG2D_AREAMIN   1e-15

Definition at line 25 of file delone_2d.c.

Function Documentation

◆ MMG2D_cavity()

int MMG2D_cavity ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_int  ip,
MMG5_int *  list 
)

Create the cavity point ip, starting from triangle list[0]; Return a negative value for ilist if one of the triangles of the cavity is required

Definition at line 149 of file delone_2d.c.

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

◆ MMG2D_correction_iso()

static int MMG2D_correction_iso ( MMG5_pMesh  mesh,
MMG5_int  ip,
MMG5_int *  list,
int  ilist,
int  nedep 
)
static

Definition at line 31 of file delone_2d.c.

Here is the caller graph for this function:

◆ MMG2D_delone()

int MMG2D_delone ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_int  ip,
MMG5_int *  list,
int  ilist 
)
Parameters
meshpointer toward the mesh
solpointer toward the solution (metric) structure
ipindex of point to insert
listCavity of the point ip.
ilistnumber of trias in the cavity of ip.
Returns
0 if the point can't be inserted, -1 if lack of memory, 1 if success.

Insertion in point ip in the cavity described by list.

Definition at line 251 of file delone_2d.c.

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

◆ MMG2D_hashEdgeDelone()

static int MMG2D_hashEdgeDelone ( MMG5_pMesh  mesh,
MMG5_Hash hash,
MMG5_int  iel,
int  i 
)
static
Parameters
meshpointer toward the mesh structure
hashpointer toward the hash table structure
ielindex of triangle
iindex of the face of the element
Returns
0 if fail, 1 if success

Update of the adjacency relationships adjacencies: hash mesh edge $v[0],v[1]$ (face i of iel) and fill the adjacency arrays if the face has already been seen.

Definition at line 107 of file delone_2d.c.

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