I’m wokring on a script for the use in Steel printing with our robots . Right now I am printing dots, which means the robotic arm moves to point A, welds for Xseconds, turns off gun, moves to point B, switches on gun, welds etc. etc.
Right now I’ve managed to sort all the points by their Z Co-ordinates but as you can see from the video HERE the ordering still isn’t optimal - is there a way to sort points so that the list always goes to say the next closest, or say always go in a clockwise direction etc?
Attached GH script
Basically - I’m using Grasshopper to generate robotic language (these are old robots so no offline programming exists for them)… the basic structure looks like this:
MOVE LINEAR TO pnt0001p
MOVE LINEAR TO pnt0002p
MOVE LINEAR TO pnt0003p
and so on… the problem is getting pnt001, pnt002 etc etc to actually be close to eachother
SENDING.gh (11.1 KB)