mmg3d
optbdry_3d.c File Reference

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

#include "mmg3d.h"
Include dependency graph for optbdry_3d.c:

Functions

int MMG3D_movetetrapoints (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree, int k)
 
int _MMG3D_coledges (MMG5_pMesh mesh, MMG5_pSol met, int k, int i)
 
int _MMG3D_deletePoint (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree, int k, int i)
 
int MMG3D_optbdry (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree, 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

Function Documentation

◆ _MMG3D_coledges()

int _MMG3D_coledges ( MMG5_pMesh  mesh,
MMG5_pSol  met,
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.

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_pOctree  octree,
int  k,
int  i 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree 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.

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_pOctree  octree,
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.

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_pOctree  octree,
int  k 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree 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.

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