fixed memory damage in distance mesh build.
build: simplified vertex output.