Recursive Isotrim with C#

Hi folks, I was dealing with this problem to get these isotrimmed surfaces with this messy topology.

I think a loop would be the best option to subdivide into smaller domains, considering that the corners of the adjacent surfaces would define my new List < UVInterval > and loop it,

I don´t know If evaluating as Brep to find the FF topology would be the best option or just test the collision to get the necessary points(adjacent corners)… If someone could suggest or could help me I’d really appreciate it, thank you!
T.


isotrim.3dm (2.4 MB)