mmgs
hash_s.c File Reference

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

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

Functions

static int paktri (MMG5_pMesh mesh)
 
int MMGS_hashTria (MMG5_pMesh mesh)
 
int assignEdge (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.

Function Documentation

◆ assignEdge()

int 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.
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.

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

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