Mesh generation :application to finite elements