Generation of a Finite Element Mesh (2D and 3D)