mmgs
|
Scale and unscale mesh and solution. More...
#include "mmgcommon.h"
Functions | |
int | MMG5_boundingBox (MMG5_pMesh mesh) |
void | MMG5_check_hminhmax (MMG5_pMesh mesh, int8_t sethmin, int8_t sethmax) |
int | MMG5_scale_scalarMetric (MMG5_pMesh mesh, MMG5_pSol met, double dd, int8_t sethmin, int8_t sethmax) |
int | MMG5_scale_meshAndSol (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, double *dd, int8_t *sethmin, int8_t *sethmax) |
int | MMG5_scaleMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol) |
int | MMG5_unscaleMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol) |
Scale and unscale mesh and solution.
int MMG5_boundingBox | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure. |
Compute the mesh bounding box and fill the min, max and delta fields of the MMG5_info structure.
void MMG5_check_hminhmax | ( | MMG5_pMesh | mesh, |
int8_t | sethmin, | ||
int8_t | sethmax | ||
) |
mesh | pointer toward the mesh structure. |
sethmin | 1 if hmin is setted by the user. |
sethmax | 1 if hmax is setted by the user. |
Check the compatibility between the automatically computed hmin/hmax values and the user settings.
int MMG5_scale_meshAndSol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | sol, | ||
double * | dd, | ||
int8_t * | sethmin, | ||
int8_t * | sethmax | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward a metric |
sol | pointer toward a solution structure (level-set or displacement). |
dd | pointer toward the scaling value (to fill) |
sethmin | setted to 1 if hmin must not be computed from the metric. |
sethmax | setted to 1 if hmax must not be computed from the metric. |
Scale the mesh and the size informations between 0 and 1. Compute a default value for the hmin/hmax parameters if needed.
int MMG5_scale_scalarMetric | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
double | dd, | ||
int8_t | sethmin, | ||
int8_t | sethmax | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
dd | scaling value. |
sethmin | 1 if hmin must not be automatically computed |
sethmax | 1 if hmin must not be automatically computed |
Scale and truncate by hmin/hmax the scalar metric stored in met. If hmin/hmax are not provided by the user, it is automatically computed from the metric.
int MMG5_scaleMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | sol | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
sol | pointer toward a solution structure (level-set or displacement). |
Scale the mesh and the size informations between 0 and 1. Compute a default value for the hmin/hmax parameters if needed.
int MMG5_unscaleMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | sol | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward a metric. |
sol | pointer toward a solution structure (level-set or displacement). |
Unscale the mesh and the size informations to their initial sizes.