Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Scale and unscale mesh and solution. More...
Go to the source code of this file.
Functions | |
int | MMG5_boundingBox (MMG5_pMesh mesh) |
void | MMG5_check_hminhmax (MMG5_pMesh mesh, int8_t sethmin, int8_t sethmax) |
int | MMG5_check_setted_hminhmax (MMG5_pMesh mesh) |
int | MMG5_truncate_met3d (MMG5_pSol met, MMG5_int ip, double isqhmin, double isqhmax) |
int | MMG5_scale_scalarMetric (MMG5_pMesh mesh, MMG5_pSol met, double dd) |
int | MMG5_scale_tensorMetric (MMG5_pMesh mesh, MMG5_pSol met, double dd) |
int | MMG5_solTruncature_iso (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG5_2dSolTruncature_ani (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG5_3dSolTruncature_ani (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG5_scale_meshAndSol (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, double *dd) |
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.
Definition in file scalem.c.
int MMG5_2dSolTruncature_ani | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the solution structure. |
Compute hmin and hmax values from unflagged points (if not setted by the user), check the values and truncate the 2D metric.
Definition at line 365 of file scalem.c.
int MMG5_3dSolTruncature_ani | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the solution structure. |
Compute hmin and hmax values from unflagged points (if not setted by the user), check the values and truncate the 3D metric.
Definition at line 453 of file scalem.c.
int MMG5_boundingBox | ( | MMG5_pMesh | mesh | ) |
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.
Definition at line 89 of file scalem.c.
int MMG5_check_setted_hminhmax | ( | MMG5_pMesh | mesh | ) |
int MMG5_scale_meshAndSol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | sol, | ||
double * | dd | ||
) |
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) |
Scale the mesh and the size informations between 0 and 1. Compute a default value for the hmin/hmax parameters if needed.
Definition at line 561 of file scalem.c.
int MMG5_scale_scalarMetric | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
double | dd | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
dd | scaling value. |
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.
Definition at line 206 of file scalem.c.
int MMG5_scale_tensorMetric | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
double | dd | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
dd | scaling value. |
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.
Definition at line 260 of file scalem.c.
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.
Definition at line 649 of file scalem.c.
int MMG5_solTruncature_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the solution structure. |
Compute hmin and hmax values from unflagged points (if not setted by the user), check the values and truncate the metric.
Definition at line 299 of file scalem.c.
int MMG5_truncate_met3d | ( | MMG5_pSol | met, |
MMG5_int | ip, | ||
double | isqhmin, | ||
double | isqhmax | ||
) |
met | pointer toward metric. |
ip | pointer toward global index of point on which metric has to be truncated |
isqhmin | inverse square of hmin (min edge size) |
isqhmax | inverse square of hmax (max edge size) |
Truncation of anisotropic metric at point ip by hmin and hmax.
Definition at line 148 of file scalem.c.
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.
Definition at line 689 of file scalem.c.