Creating meshes of finite elements