Pipe.volume

Pipe.volume()

Compute the volume of the swept disk solid.

V = pi * r^2 * L for solid pipes, or V = pi * (r^2 - r_inner^2) * L for hollow pipes,

where L is the total arc length of the directrix.

Note

Exact for straight directrix segments. For curved paths this is an approximation that is accurate when the curvature radius is much larger than the pipe radius.

Returns:
float