Best Way to Extrude Polyline Curve

I tried once and also has problem with the BoundingBox … It was not so easy.