Yes, I used the lovely search function and google first.
So, I would like to draw a line from a vector of vertices. Let's say they're roads, and the vector goes from road.begin to road.end and doesn't visit any coordinate more than once and does not collide with itself.
So, most of the roads I've been on have greater than zero thickness, so I'd like to give it a width. I saw somewhere in the manual that if my lines have thickness, they "Must Be" rectangles. Hmmmm. Fair enough, if by "line" you mean "an edge connecting two points". But when I talk of lines, they have hundreds of points. And obviously, if I was to create a series of rectangles from point to point, this would not in fact work correctly because there would be little gaps and overlaps caused by the rotation of the rectangles.
So, can anyone point me to a "polygonize line" algorithm, or post a decent bit of working code that allows me to convert a list of x,y vertices into a nice sfml shape class of some sort with a proper width that is constant along the entire line?
Thanks!