Volumes with piecewise quadratic medial surface transforms: Computation of boundaries and trimmed offsets