title: How can i generate indices from vertex list in linear time?
body: <p>It's for my exporter plugin for 3D applications. My current solution is working fine, but it's very slow ( complexity O(n^2 * log n ) ).</p>
  
  <p>It should be a function, where input is an array of object verticles and output as a list of verticles without duplications and index list.</p>
  
  <p>Also, when two vertices are very very very close to each other ( let's say, diff about 0.001 ), algorithm will mark it as duplication.</p>
  
  <p>My question is, is there a way to do it in linear time, or at least faster then in my solution ?
  Thank you very much.</p>