Project one mesh onto another mesh

Using Extrude component delays a lot my script:

I’ve slightly modified your code, but it sometimes returns empty holes inside:

If I use Refine component, the number of holes decreases, but other holes appear:

Because of these problems I split the mesh with the naked edges.

20240902_MeshSplitHoles.gh (624.6 KB)

Edit. For these other inputs there is one region that is duplicated.


image
However, the loft surface for mesh splitting is generated properly:
image

20240905_MeshSplitHoles.gh (1016.6 KB)

Edit 2. With another inputs, after transforming the result mesh by moving it along a vector, I receive 2 invalid meshes:


Does anybody know how to avoid this? I’ve seen this thread: BUG: Transform produces invalid Mesh, but I see that more as a temporary fix than anything else

20240905_MeshSplitHoles_InvalidMesh.gh (1.1 MB)