Skip to content
  • ws's avatar
    Fix for endless loops during edge swaps by keeping track of the... · 157327da
    ws authored
    Fix for endless loops during edge swaps by keeping track of the "whateverEdgeSwaps". As the algorithm "swapEdgePass" has changed such that it takes the current size of the m.edges vector into account instead of the original size, it might happen that edge a-b swaps to edge c-d whereas both will have the same quality (value of qa and qb in "edgeSwapTest"). The current algorithm will now keep on swapping between a-b and c-d and ends up in a memory overload.
    157327da