1 | initial version |
So I found the reason for my error or at least an workarround. It is possible to pass a vector<vector<point>>, where u can push-back the outer vector with an empty inner vector. Thus my safeguard working with the outer "if (! .empty)" did fail. If that's the case, you get above Error & thanks for the effort.
So my solution is to make sure there is no empty stuff passed to any those functions, mostly with if(!Vector.empty())
. I know it is not an efficient or elegant solution, but it works. The alternative to the if-conditions would be to make sure there are no empty Vectors created in the first place, which sometimes is quite difficult.
I hope that helps.
Best regards homes