Grouped mesh ray collision test