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

◆ 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:

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