Precomputes matrices and sort meshes