Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove duplicate curve vertex #3496
added a commit
this pull request
Jul 20, 2015
So this is the sort of thing you need to special case so that you can close curves properly. It's not enough to just ignore the last vertex—you need it there as an indication that the curve should close—but the GL renderer needs to take it into account (internally) and not double up the point to cause the problems seen in #2937.
That's what I'm saying: when the first and last are the same position, the renderer needs to special case that situation to have it properly close and not glitch. Internally it'll need to skip the last point to avoid the glitches, but from a user's point of view (and the API's point of view), the line should behave as if it's closed.
However, when you draw just vertices (straight lines) you don't draw the first one again at the end,
Also, @codeanticode pointed out that when you want to smoothly close