ENH: Factor out tube point weight calculation.

Change-Id: Ieea9acbd082daa5d1fd3c97a5b8593297ad43ed5