Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Fonctions for isotropic size map computation. More...
#include "mmgcommon_private.h"
Go to the source code of this file.
Functions | |
double | MMG5_surftri_iso (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt) |
int | MMG5_defsiz_startingMessage (MMG5_pMesh mesh, MMG5_pSol met, const char *funcname) |
void | MMG5_gradation_info (MMG5_pMesh mesh) |
int | MMG5_sum_reqEdgeLengthsAtPoint (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int ip0, MMG5_int ip1) |
int | MMG5_compute_meanMetricAtMarkedPoints_iso (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG5_reset_metricAtReqEdges_surf (MMG5_pMesh mesh, MMG5_pSol met, int8_t ismet) |
void | MMG5_mark_pointsOnReqEdge_fromTria (MMG5_pMesh mesh) |
int | MMG5_gradsiz_iso (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG5_gradsizreq_iso (MMG5_pMesh mesh, MMG5_pSol met) |
Fonctions for isotropic size map computation.
Definition in file isosiz.c.
int MMG5_compute_meanMetricAtMarkedPoints_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
Compute the mean metric at mesh points with a non-nul s field. At the beginning, the metric of a given point contains the sum of n metrics and the s field of the point the number of metrics summed in the point. Set the flag of the processed points to 3.
Definition at line 167 of file isosiz.c.
int MMG5_defsiz_startingMessage | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
const char * | funcname | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
funcname | name of the calling function |
Print that we enter in the defsiz function in high verbosity level and check the hmax value.
Definition at line 77 of file isosiz.c.
void MMG5_gradation_info | ( | MMG5_pMesh | mesh | ) |
int MMG5_gradsiz_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer to the mesh |
met | pointer to the metric |
Isotropic mesh gradation routine. The points belonging to a required edge are treated in gradsizreq_iso.
Definition at line 278 of file isosiz.c.
int MMG5_gradsizreq_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer to the mesh |
met | pointer to the metric |
Isotropic mesh gradation routine. The points belonging to a required entity are treated in gradsizreq_iso.
Mark the edges belonging to a required entity
Update the sizes and mark the treated points
Definition at line 372 of file isosiz.c.
void MMG5_mark_pointsOnReqEdge_fromTria | ( | MMG5_pMesh | mesh | ) |
int MMG5_reset_metricAtReqEdges_surf | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int8_t | ismet | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
ismet | 1 if user provided metric |
For a triangle mesh, process the triangles and set to 0 the metrics at points that are at the extremities of a required edge.
Definition at line 204 of file isosiz.c.
int MMG5_sum_reqEdgeLengthsAtPoint | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_int | ip0, | ||
MMG5_int | ip1 | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
ip0 | index of the first edge extremity |
ip1 | index of the second edge extremity |
Compute the euclidean length of the edge ip0 ip1, add this length to the metric of the edge extremities and increment the count of times we have processed this extremities.
Definition at line 129 of file isosiz.c.
double MMG5_surftri_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pTria | ptt | ||
) |