Optimisation of diagonals is implemented in order to create a numerically favourable FEM mesh, i.e. where possible, equilateral triangles. The effect of optimisation of diagonals can best be seen using an example:
If an existing unfavourable diagonal cuts two different material areas, no optimisation takes place because this would alter the system.