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/mmg3d/libmmg3d.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Example of input output for the mmg3d library for multiple solutions at mesh vertices
---------------------------— STEP I -----------------------—
1) Initialisation of mesh and sol structures
2) Build initial mesh and solutions in MMG5 format
Two solutions: just use the MMG3D_loadMesh function that will read a .mesh(b) file formatted or manually set your mesh using the MMG3D_Set* functions
Automatic loading of the mesh and multiple solutions
---------------------------— STEP II ------------------------—
3) Transfer the solutions in a new solutions array
a) Get the solutions sizes
b) Manually set the size of the new solution: give info for the sol structure: number of solutions, type of entities on which applied the solutions, number of vertices, type of the solution
c) Get each solution and set it in the new structure
b) give solutions values and positions
---------------------------— STEP III -----------------------—
Save the new data
Use the MMG3D_saveMesh/MMG3D_saveAllSols functions
3) Free the MMG3D structures
Definition at line 25 of file main.c.