IceCreamYou / THREE.Terrain

A procedural terrain generation engine for use with the Three.js 3D graphics library for the web.
https://icecreamyou.github.io/THREE.Terrain/
MIT License
717 stars 112 forks source link

Fix one-off in toArray2D #17

Closed Ithamar closed 5 years ago

Ithamar commented 5 years ago

toArray2D creates the arrays as sized to xSegments/ySegments, while it (correctly) loops over xSegments +1 and ySegments +1.

IceCreamYou commented 5 years ago

Good catch, thanks!