Logic in Kangaroo Tips

Hi All

I have attached a standard origami definition.

Regarding the Hinge and Tips relationship I understand it is a question of data matching of 0 and 1, ie. Index 0 or Line matches with Index 0 of Tips(pls correct me if I am wrong! ).
However, what I find difficult to understand is that based on a given base Mesh, how does Kangaroo decides which points are 0 and which is 1, 2 etc.
I have also attached the screen cap here to illustrate my question.

If anyone knows this logic, I would be most grateful to learn from you!

Thank you so much!
YutakaHinge & Tip Relationship_Kagaroo Forum.gh (27.6 KB)