Simplified MeshUtils::extractTexture a bit
Put the calculation of a triangle's boundingbox in a separate function