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

Generic algebraic and algorithmic tools. More...

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

Go to the source code of this file.

Functions

int delref (MMG5_pMesh mesh)
 
int setref (MMG5_pMesh mesh, MMG5_int start, MMG5_int ref, int putreq)
 
MMG5_int MMGS_indElt (MMG5_pMesh mesh, MMG5_int kel)
 
MMG5_int MMGS_indPt (MMG5_pMesh mesh, MMG5_int kp)
 
void MMGS_keep_only1Subdomain (MMG5_pMesh mesh, MMG5_int nsd)
 

Detailed Description

Generic algebraic and algorithmic tools.

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

Definition in file gentools_s.c.

Function Documentation

◆ delref()

int delref ( MMG5_pMesh mesh)

Definition at line 39 of file gentools_s.c.

◆ MMGS_indElt()

MMG5_int MMGS_indElt ( MMG5_pMesh mesh,
MMG5_int kel )

find the element number in packed numerotation

Definition at line 123 of file gentools_s.c.

Here is the caller graph for this function:

◆ MMGS_indPt()

MMG5_int MMGS_indPt ( MMG5_pMesh mesh,
MMG5_int kp )

find the point number in packed numerotation

Definition at line 139 of file gentools_s.c.

Here is the caller graph for this function:

◆ MMGS_keep_only1Subdomain()

void MMGS_keep_only1Subdomain ( MMG5_pMesh mesh,
MMG5_int nsd )
Parameters
meshpointer to the mesh structure.
nsdindex of subdomain to keep.

Keep only subdomain of index nsd and remove other subdomains.

Definition at line 161 of file gentools_s.c.

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

◆ setref()

int setref ( MMG5_pMesh mesh,
MMG5_int start,
MMG5_int ref,
int putreq )
Parameters
meshpointer to the mesh
startindex of the tetra from which we start
refreference to set
putreq1 if boundary edges must be set to required
Returns
1 if success, 0 if fail

Start from triangle start, and pile up triangles by adjacency, till a GEO or REF curve is met ; pass all references of travelled faces to ref ; putreq = 1 if boundary edges met must be set to MG_REQ, 0 otherwise.

Definition at line 64 of file gentools_s.c.