Creating outlines from lines

@DanielPiker once shared this post with a question I asked a while ago:

It may be helpful for you to call @piac 's wb algorithm in script and retrieve the polylines instead of mesh.