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

Go to the source code of this file.

Functions

static int MMG5_Alloc_inode (MMG5_pMesh mesh, MMG5_iNode **node)
 Functions used in mmg applications. More...
 
int MMG5_Add_inode (MMG5_pMesh mesh, MMG5_iNode **liLi, int val)
 
void MMG5_Free_ilinkedList (MMG5_pMesh mesh, MMG5_iNode *liLi)
 
int MMG5_countLocalParamAtTri (MMG5_pMesh mesh, MMG5_iNode **bdryRefs)
 
int MMG5_writeLocalParamAtTri (MMG5_pMesh mesh, MMG5_iNode *bdryRefs, FILE *out)
 

Function Documentation

◆ MMG5_Add_inode()

int MMG5_Add_inode ( MMG5_pMesh  mesh,
MMG5_iNode **  liLi,
int  val 
)
Parameters
meshpointer toward the mesh structure (for count of used memory).
liLipointer toward the address of the root of the linked list.
valvalue to add to the linked list.
Returns
1 if the node is inserted, 0 if the node is not inserted, -1 if fail.

Add a node with value val to a sorted linked list with unique entries.

Remarks
as the linked list had unique entries, we don't insert a node if it exists.

Definition at line 68 of file apptools.c.

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

◆ MMG5_Alloc_inode()

static int MMG5_Alloc_inode ( MMG5_pMesh  mesh,
MMG5_iNode **  node 
)
inlinestatic

Functions used in mmg applications.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Date
04 2015
Parameters
meshpointer toward the mesh structure (for count of used memory).
nodepointer toward a MMG5_iNode (cell for linked list)
Returns
1 if we can alloc the node node, 0 otherwise.

Node allocation.

Definition at line 46 of file apptools.c.

Here is the caller graph for this function:

◆ MMG5_countLocalParamAtTri()

int MMG5_countLocalParamAtTri ( MMG5_pMesh  mesh,
MMG5_iNode **  bdryRefs 
)
Parameters
meshpointer toward the mesh structure.
bdryRefspointer toward the list of the boundary references.
Returns
npar, the number of local parameters at triangles if success, 0 otherwise.

Count the local default values at triangles and fill the list of the boundary references.

Count the number of different boundary references and list it

Definition at line 142 of file apptools.c.

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

◆ MMG5_Free_ilinkedList()

void MMG5_Free_ilinkedList ( MMG5_pMesh  mesh,
MMG5_iNode liLi 
)
Parameters
meshpointer toward the mesh structure (for count of used memory).
liLipointer toward the root of the linked list.

Free the memory used by the linked list whose root is liLi.

Definition at line 120 of file apptools.c.

Here is the caller graph for this function:

◆ MMG5_writeLocalParamAtTri()

int MMG5_writeLocalParamAtTri ( MMG5_pMesh  mesh,
MMG5_iNode bdryRefs,
FILE *  out 
)
Parameters
meshpointer toward the mesh structure.
bdryRefspointer toward the list of the boundary references.
outpointer toward the file in which to write.
Returns
1 if success, 0 otherwise.

Write the local default values at triangles in the parameter file.

Definition at line 186 of file apptools.c.

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