mmgs
scalem.c File Reference

Scale and unscale mesh and solution. More...

#include "mmgcommon.h"
Include dependency graph for scalem.c:

Functions

int _MMG5_boundingBox (MMG5_pMesh mesh)
 
int _MMG5_scaleMesh (MMG5_pMesh mesh, MMG5_pSol met)
 
int _MMG5_unscaleMesh (MMG5_pMesh mesh, MMG5_pSol met)
 

Detailed Description

Scale and unscale mesh and solution.

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

Function Documentation

◆ _MMG5_boundingBox()

int _MMG5_boundingBox ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0 if fail (computed bounding box too small).

Compute the mesh bounding box and fill the min, max and delta fields of the _MMG5_info structure.

Here is the caller graph for this function:

◆ _MMG5_scaleMesh()

int _MMG5_scaleMesh ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric or solution structure.
Returns
1 if success, 0 if fail (computed bounding box too small or one af the anisotropic input metric is not valid).

Scale the mesh and the size informations between 0 and 1. Compute a default value for the hmin/hmax parameters if needed.

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

◆ _MMG5_unscaleMesh()

int _MMG5_unscaleMesh ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric or solution structure.
Returns
1.

Unscale the mesh and the size informations to their initial sizes.

Here is the caller graph for this function: