mmg2d
|
Fonctions for isotropic size map computation. More...
#include "mmgcommon.h"
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, int ip0, int ip1) |
int | MMG5_compute_meanMetricAtMarkedPoints_iso (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG5_reset_metricAtReqEdges_surf (MMG5_pMesh mesh, MMG5_pSol met) |
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.
int MMG5_compute_meanMetricAtMarkedPoints_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward 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.
int MMG5_defsiz_startingMessage | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
const char * | funcname | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward 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.
void MMG5_gradation_info | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure. |
Print gradation values (depending on the verbosity).
int MMG5_gradsiz_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh |
met | pointer toward the metric |
Isotropic mesh gradation routine. The points belonging to a required edge are treated in gradsizreq_iso.
int MMG5_gradsizreq_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh |
met | pointer toward 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
void MMG5_mark_pointsOnReqEdge_fromTria | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure. |
Set the s field of the points that belongs to a required edge to 1, set it to 0 otherwise.
int MMG5_reset_metricAtReqEdges_surf | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
For a triangle mesh, process the triangles and set to 0 the metrics at points that are at the extremities of a required edge.
int MMG5_sum_reqEdgeLengthsAtPoint | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | ip0, | ||
int | ip1 | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward 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.
double MMG5_surftri_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pTria | ptt | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the meric structure. |
ptt | pointer toward the triangle structure. |
Compute the area of the surface triangle ptt with respect to the isotropic metric met.