Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <float.h>
#include "mmg/mmg2d/libmmg2d.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Include the mmg2d library hader file
---------------------------— STEP I -----------------------—
1) Initialisation of mesh and sol structures
2) Build mesh in MMG5 format
Two solutions: just use the MMG2D_loadMesh function that will read a .mesh(b) file formatted or manually set your mesh using the MMG2D_Set* functions
read the mesh in a mesh file
Set parameters : for example set the maximal edge size to 0.1
Higher verbosity level
Generate the mesh
3) Free the MMG2D structures
Definition at line 21 of file main.c.