How can I split mesh by edges?

For some reason it doesn’t work on R8


Very strange GetSegments is there since R5
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.polyline/getsegments

There is also another way I implemented in order to keep a unique mesh. I added a material index to each face. This allow to subdivide a mesh and keeping the border connected. Binary pattern - #3 by laurent_delrieu
Mesh clustering - #10 by laurent_delrieu