Mesh Cage Morph speed

I rely heavily on Mesh Cage Morphing and I need to be able to morph points.

The new native Mesh Cage (MCM) component seems to work faster when a set of points is converted into a pointcloud first.

@danielpiker does my observation make sense? Would there be an option in the component to morph points just as fast without having to create a pointcloud first?

mesh_cage_morph_2_comparison.gh (261.9 KB)

Hi Martin - yes, it should be possible to update this. It’s currently only using the faster method for meshes, subds and pointclouds (as these can all be morphed by only changing point positions independently in parallel, unlike for NURBS geometry). An easy fix I can make for the case you show would be for me to include something in the component so polylines also use this faster path.

It should also be possible to for it check when the input is a list of points and treat this differently, though I think that will always be a bit slower than when the input is a single item containing points (mesh,polyline,pointcloud etc) just because of how Grasshopper 1 deals with list inputs.

Thanks for the quick reply.

In my case the points are not actually from polylines. This is just an example with a lot of points.

My points are vertices filtered from meshes which are later combined into a full mesh again.

I think the pointcloud workaround could be a good solution for me.

I should also add there’s still a test version in there of a C++ version (no component on the toolbar, but you can get it by double clicking the canvas and searching #mcmcpp). It’s currently only hooked up for when the thing being morphed is a mesh, but you can use it in the same way by just making a mesh with only a vertex list and no faces.
Looks like it’s somewhere around 2-3x faster than the regular version via pointcloud for your example.

mcmcpp_compare.gh (253.9 KB)

Nice, thanks for the information. I’ll try that test component on my real meshes.

A huge difference on a full body mesh with 122’000 vertices.

The pointcloud workaround does not help in this case.