title: How to create triangle faces for a real-world terrain in three.js?
body: <p>My goal is to create a scene similar to <a href="http://css.dzone.com/articles/threejs-render-real-world" rel="nofollow noreferrer">http://css.dzone.com/articles/threejs-render-real-world</a> but using vector X,Y,Z points rather than a raster image. </p>
  
  <p>In <a href="https://stackoverflow.com/questions/18167080/is-it-possible-to-use-gis-terrain-vector-data-in-three-js/">this question</a> I received some help in creating a three.js scene using real-world coordinates from a GIS. This showed that it is possible to use coordinates in meters.</p>
  
  <p>That question's answer said to create a face between 3 points:</p>
  
  <pre><code>var face = new THREE.Face3(2, 1, 0);
  geometry.faces.push(face);
  </code></pre>
  
  <p>How would I go about creating faces between hundreds of points? Is it left up to me to determine which sets of 3 coordinates constitute a face, or is there an inbuilt method which will compute this from the <code>geometry</code> object?</p>
  
  <p>There's a rudimentary sample at <a href="http://jsfiddle.net/slead/rJj3f/1/" rel="nofollow noreferrer">http://jsfiddle.net/slead/rJj3f/1/</a> showing a larger sample of the input points.</p>
  
  <p>Thanks</p>