cache some parts of triangle intersection