Closed Artur-Sampaio closed 5 years ago
The check for large indices was being done under the wrong indices, so it was possible for
ia <= 65535 while edgeIndices[indicesReverseLookup[ia]] > 65535.
ia <= 65535
edgeIndices[indicesReverseLookup[ia]] > 65535
This caused Uint16Array to not be able to represent the desired edgeIndices (due to the two byte limitation) and for the edges to show incorrectly.
Fixes #274
Thanks @Artur-Sampaio !
The check for large indices was being done under the wrong indices, so it was possible for
ia <= 65535
whileedgeIndices[indicesReverseLookup[ia]] > 65535
.This caused Uint16Array to not be able to represent the desired edgeIndices (due to the two byte limitation) and for the edges to show incorrectly.
Fixes #274