Split multiple mesh edges

Hi community

I am trying to split a triangle mesh using:

import Rhino.Geometry as rg
rg.mesh.TopologyEdges.SplitEdge()

However, this function only allows giving a single edge index to split. How can I split a mesh topology when I have a list of edge indices that I want to split? Looping over all the edges is not possible, because every time I split an edge, the indexing of the topology is changed. For example:

edges_to_split = [0, 4, 5, 8, 10]
edges_parameters = [0.5, 0.5, 0.5, 0.5, 0.5]

Thank you for your time!

Hereby a simple example, I need to split the mesh edges where one of the green lines intersects with the mesh edges.

Okay, nevermind, just found the split mesh with curve command :slight_smile: