Getting part of a curve between points on a curve

Yo, I just discovered a problem that has been in this code all along, since my first reply two days ago. Here is what I did that gave me my first clue:

dome_2023Jun5c2

See it? I expected a single “Closed Brep” from joining all the sections and using Cap Holes but there is an extra “Untrimmed Surface” here…? I used my ‘Tree/List Viewer’ tool to see the unwanted “surface” and realized it was only a line, probably a result of trying to loft identical curves.

But it turned out to be a little trickier than I expected to investigate further because when Area is connected to Loft, Rhino hangs very hard! I had to use Task Manager to kill Rhino.

To make a long story short, I had to replace this:
dome_2023Jun5c3

with this:
dome_2023Jun5d
dome_2023Jun5d.gh (25.6 KB)

Explode returns one duplicated point whereas Discontinuity (Disc) returns the correct number, one point for each vertex of the polygon. I have known this for years but missed it until now. Oops.

I don’t think this explains the Win11 anomaly but… :man_shrugging: