def segment_volume(seg):
r0 = seg[<NUM_LIT:0>][COLS.R]<EOL>r1 = seg[<NUM_LIT:1>][COLS.R]<EOL>h = point_dist(seg[<NUM_LIT:0>], seg[<NUM_LIT:1>])<EOL>return math.pi * h * ((r0 * r0) + (r0 * r1) + (r1 * r1)) / <NUM_LIT><EOL>
Compute the volume of a segment.

    Approximated as a conical frustum.