What is Nostr?
Sander van Rossen🇺🇦 /
npub1gxk…x9fy
2024-01-12 21:15:54

Sander van Rossen🇺🇦 on Nostr: I do the same thing, you just have an additional array with indices that point to the ...

I do the same thing, you just have an additional array with indices that point to the next vertex or itself. It's nice because you know the maximum possible size. If you also have triangles or quads you can infer the next/prev vertices based on their position in the arrays (so no need to store them) and you just need an additional array for each edge to point to it's opposite/twin edge
Author Public Key
npub1gxkf5wr2ay7twdx25emfy7c89ngy6020nf4mapce2q3uuu0kc3xs8tx9fy