Cycle through all points in a mesh

local mesh = vectorLayer:Mesh() -- you can also use moho:Mesh()
for i=0, mesh:CountPoints()-1 do
local point = mesh:Point(i)
-- do something with the point
end