This is for my exporter plugin for 3D applications. My current solution is working fine, but it is very slow (O (n ^ 2 * log n) complexity).
This should be a function in which the input is an array of object vertices and displayed as a list of vertices without duplication and an index list.
In addition, when two vertices are very very close to each other (let's say diff is about 0.001), the algorithm will mark this as duplication.
My question is: is there a way to do this in linear time, or at least faster than in my solution? Thank you very much.
source share