This is an implementation of mesh generation - approximate curved surface and selection with mouse.
You can follow along or grab the code from my github repo:
https://github.com/nirvik00/ExploreTh...
Three js playlist : • Three JS (three.js) introduction(vid001)