Draw pipe with distance measure