Mesh morphing

Hallo , i am trying to morph a quad mesh ( MESH1 ) by using 2 reference meshes ( MESH2 & MESH3) as morphing references.

so far i have been able to obtain some result only by using “sporph” component but that meant to convert the MESH 2 and 3 in to surfaces since this component does not work with meshes.

i wonder if there is a pure mesh based approach and what is the more convenient approach to be use since i have always been told that working with mesh is faster.

if anyone can help me with the pure mesh approach i appreciate.

20260919 MESH MORPHING.gh (4.0 MB)

Have you tried Mesh Cage Morph?

Rhino BETA Feature: Mesh Cage Morph GH1 component - Serengeti (Rhino BETA) - McNeel Forum

Hi @martinsiegrist and thanks for your answer ,

i download the Rhino WIP and gave it a try but beside being very slow the Mesh Cage component gave me a wrong result ( or at least different from what i need ) being the morphed mesh scaled1D to factor close to 0 along the reference meshes normals ( i guess )

1 is previous attempt / 2 is the last using mesh cage morph

Calculating the weights is slow but it only has to be done once as long as the topology of the input does not change.

As far as I can tell the component needs volumetric meshes for reference and target so the minimum you need to do is thicken your meshes. Personally I would create a reference mesh which is slightly larger than the mesh you want to morph.

@danielpiker mentioned a c++ test component and it works much faster than the current native component.

20260919 MESH MORPHING_mmmcpp.gh (4.0 MB)

thanks for your explanation @martinsiegrist

Thanks for the clarification — that was my impression as well. When you mentioned the cage morph, I thought of the cage as a volumetric mesh.

that would be very helpful , thess components takes very incredibly long to compute ( either the new MCM as long as the old MCM based on point cloud )

image

to the point that i cannot use it on real cases ( at least with my old machine ) …the script you have posted takes forever

image

so far the more convenient way to seem the way i did by using sphorph as i did…what is not clear is something already seen several time i.e. meshes based approaches taking much longer than those based on nurbs…we have always been told that meshes are faster but eventually this simple statement is not always real..it depends

@martinsiegrist

PS many thanks also for showing me how to use the old MCM based on points

PPS i wonder why lately my profiler tools switched from msec to % , i tought this was due to some upgrade but as i can see your still works in msec…do you know if there is a way to switch it back to msec ?

Right click the profiler and select the Show Duration option