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 ) ).
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.
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.
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.