Splitting PolySurface with PolyCurve

Good morning!

I’m working on a script to split a topography through model lines drawn in plan view. To accomplish this I have a part where I am splitting a PolySurface with a PolyCurve. I am not getting the results I expected, and wanted to ask you guys if you can notice anything that I am missing.

Here is the topo (converted to polysurface), and the model lines (PolyCurve) I am splitting it with:
toposplit

Here are the two resulting topos (polysurfaces):
toposplit2
toposplit3

As you can see, it’s only splitting the outside points, and doesn’t split the sections where the model lines are directed inward.

Here is my dynamo script (PolySurface.Split comes from Ampersand package)

Is there anything you guys notice that may be the cause or possible solutions? Or does this seem like something I’m going to have to modify the python script inside the PolySurface.Split node to accomplish what I’m trying to do?

Any feedback is appreciated. Thanks in advance!

I believe I will have to change something inside the PolySurface.Split node.

It appears as though the python script that groups the resulting surfaces is responsible for what I am experiencing.