updated affine_hull_intersection to use get_poly_dim