Wall Generator for table top games

So, I'm an avid DND player and DM, I always liked having small 3d printed bits on the table to help give it a bit more of a real feeling. Lately I wanted a skinnier (and quicker to make) version of the wall I had created a while back. So I tried to make this. You just put in the points you want the wall to go through, and it will make it. Sorry that the vector thing may be a bit complex, it didn't seem that hard when I was making it at first.