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

Functions for hash tables management and triangle packing. More...

#include "libmmgs_private.h"
Include dependency graph for hash_s.c:

Go to the source code of this file.

Functions

static int paktri (MMG5_pMesh mesh)
 
int MMGS_hashTria (MMG5_pMesh mesh)
 
int MMGS_assignEdge (MMG5_pMesh mesh)
 
int MMGS_bdryUpdate (MMG5_pMesh mesh)
 

Detailed Description

Functions for hash tables management and triangle packing.

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

Definition in file hash_s.c.

Function Documentation

◆ MMGS_assignEdge()

int MMGS_assignEdge ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0.

Copy the properties (ref and tag) of the declared edges to the triangles, where they are assigned to the individual corners of the triangle. First a hash is created for rapid lookup of the edges. Then in a loop over all edges of all triangles, the hash is probed for each edge, and if it exists its properties are copied. Thus, declared edges that do not occur in any triangle will be silently ignored.

Remarks
this function handle all the provided edges.

Definition at line 113 of file hash_s.c.

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

◆ MMGS_bdryUpdate()

int MMGS_bdryUpdate ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0.

Copy the edge tags stored in triangles in the other triangles sharing the edge.

Definition at line 169 of file hash_s.c.

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

◆ MMGS_hashTria()

int MMGS_hashTria ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0 if fail.

Create adjacency table.

Definition at line 77 of file hash_s.c.

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

◆ paktri()

static int paktri ( MMG5_pMesh  mesh)
static
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0 if fail.

tria packing

Definition at line 45 of file hash_s.c.

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