[python] Finding closed curves inside a closed curve [advanced]

For the challenge lovers.
solving this

in case where the curves are product of an intersection between closed solid polysurface and a curved (developable) surface. (single curvature)


Can you guarantee they fully intersect? Otherwise the intersection curves might be open…

Yes, that’s a guarantee, closed solid polysurface intersected with a surface that follows the same curvature.

Imagine a curved surface which is extruded (solid) and you intersect with the resulting solid. In case on the solid you have holes.

result of the intersection: