Kangaroo mesh interior edge index order changes after simulation

Hello! I’m trying to extract the crease line indices before an origami folding simulation, and then record the fold angle of each crease line after the Kangaroo simulation. However, I’ve found that the indices get scrambled/mismatched after the simulation. Is there a way to solve this?"
Kangaroo mesh interior edge index order changes after simulation.gh (38.4 KB)


I solved it! The face indices didn’t change, so starting from the faces to find the edges solved the problem. Thanks!

Glad you figured it out.

This isn’t anything specific to Kangaroo by the way - mesh edges in Rhino and Grasshopper are not persistent but created when you ask for them, and if the geometry has changed the order the edges are returned in may change.

Face vertex indices on the other hand are kept and not affected by changing the geometry of the vertices.

I did not know this! :+1: