This is a implementation of a simple level of detail algorithm that uses the edge collapse method and a simple angle heuristic to reduce the number of polygons in the given mesh. This example includes an example in WebGl using the three.js framework.
File list:
Level of detail
..............\data.js
..............\lod.js
..............\main.html
..............\OrbitControls.js
..............\three.js