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

Functions for the optimization of very bad elements. More...

#include "libmmg3d.h"
#include "libmmg3d_private.h"
#include "mmg3dexterns_private.h"
Include dependency graph for optbdry_3d.c:

Go to the source code of this file.

Functions

int MMG3D_movetetrapoints (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, MMG5_int k)
 
int MMG3D_coledges (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, int i)
 
int MMG3D_deletePoint (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, MMG5_int k, int i)
 
int MMG3D_optbdry (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, MMG5_int k)
 

Detailed Description

Functions for the optimization of very bad elements.

Author
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Algiane Froehly (Inria/UBordeaux)
Version
5

Definition in file optbdry_3d.c.

Function Documentation

◆ MMG3D_coledges()

int MMG3D_coledges ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  k,
int  i 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
kindex of a tetra
iindex of point to delete in tetra k.
Returns
1 if success, 0 if we can't delete the point.

Try to remove point i of tet k, try the three edges of k containing i.

Definition at line 161 of file optbdry_3d.c.

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

◆ MMG3D_deletePoint()

int MMG3D_deletePoint ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG3D_pPROctree  PROctree,
MMG5_int  k,
int  i 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree structure.
kindex of a tetra
iindex of point to delete in tetra k.
Returns
1 if success, 0 if we can't delete the point.

Try to delete the point i of tet k. Try all the edges containing i.

Definition at line 220 of file optbdry_3d.c.

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

◆ MMG3D_movetetrapoints()

int MMG3D_movetetrapoints ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG3D_pPROctree  PROctree,
MMG5_int  k 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
kindex of a tetra
Returns
1 if we move one of the vertices, 0 otherwise.

Try to move the vertices of the tetra k to improve its quality.

Definition at line 47 of file optbdry_3d.c.

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

◆ MMG3D_optbdry()

int MMG3D_optbdry ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG3D_pPROctree  PROctree,
MMG5_int  k 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree structure.
kindex of a tetra
Returns
1 if success, 0 if fail.

Try to optimize the tetra k. This tetra has a face on the boundary.

Definition at line 259 of file optbdry_3d.c.

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