I'm making a vector drawing application. I use this algorithm to generate outlines.
This algorthm works well, except it does not close the outline as seen here:
I'm not sure what I should do to ensure that it always closes the outline. I tried inserting the last vertex at position[0] in the std::vector but this did not help.
DOUBLEPOINT looks like:
struct DOUBLEPOINT {
double point[2];
};
How can I make it so it always properly closes the shape even on sharp corners?
Thanks