Half-Edge structure in Lua