creates a tube based on a polygon