stop using math::tuple with most parts of the geometry rendering code