Sporph using meshes intead of surfaces

i need to transform curves in a sporph-like way, but use meshes instead of surfaces as base and target inputs for the transform.
i thought, i already did this in the past, but cant remember, which component or plugin i used.
any ideas?
thanks in advance.
sporph_mesh.3dm (132.5 KB)

MeshCageMorph(included in the fattener.gha file here) will do that.
The geometry needs to be on or near the reference mesh to work well though. So here you might want to trim those parts that extend beyond it.


meshcagemorph_curves.gh (9.0 KB)

thanks daniel for the quick help,
i was hoping for a robust one-component solution. i only posted a very small part of the project. when i add more parts of the meshes, the problem becomes more obvious …

meshcagemorph_curves.2gh.gh (13.6 KB)
meshcagemorph_curves.2gh.3dm (191.2 KB)

For multiple disjoint parts like this, when you have curves to be mapped which span across those disjoint parts, you’d need to split the curves to be mapped.
(just like how with sporph you can’t use polysurfaces)
meshcagemorph_curves.2gh.gh (15.6 KB)

thanks for the explanation. yes, you´re right: sporph does not work on polysurfs - i forgot that.
the final mesh consists of 28 parts and the solution should be more general and also work i more complex cases. so, think this will require some deeper digging …

You just need to split and separate the curves to be mapped into the ones which ‘belong’ to each mesh patch. Otherwise the issue is that for any single point on a seam between patches you’ve got 1 point on the reference to be mapped to 2 separate parts of the target.
I showed with 2 patches above, but it’s not a big deal to generalise it.

thanks again!
and sorry for being dense here: i simply lack
the basics splitting the curves by the mesh edges and sorting the items correctly.
would you mind showing me the trick with all the 28 mesh patches?