I'm not really familiar with Java, but here's an example in Maxscript with a method that should be easily transferrable to other languages (assumes first position in array is the one we want to start the line with): allPositions = for obj in selection collect obj.pos --this line can just be replaced with any list/array of…
before I injure myself from repeated desk/head contact ... I've got an array/list/whatever of vectors, I want them ordered into a line based on proximity to the next nearest point. i.e point 0 connects to the nearest point, point 1 connects to the nearest point that isn't point 0 -- and so on I don't need to worry about…