Optimization of P2 meshes and applications. (July 2020)