How to match a mesh to a curve with falloff control in grasshopper

Hello,
I have a Mesh and a Curve as you see in the pic below. I just wonder if we can match the mesh to the curve with a certain distance like it perfect match mesh to curve or have a gap consistently. Also is it possible to have a fall off control?

Please notice the distance from the target curve to the mesh is not a certain number, its different distance at different point on curve.I project the target curve to the mesh so it is easy for you to see.

Appreciate for the help

Denis

Mesh Match Curve.3dm (2.6 MB)

You may give it a try with SoftTransfrom, and fyi.

Hi Jesse,

Thank you for the advice — it’s a very useful function. However, it looks like this function doesn’t have an option to use a target curve to match against. I’m really looking for something more advanced in Grasshopper that allows the mesh to follow a specific curve.

Thanks again for your help.

Hello

this doesn’t seem to difficult, but depending on the curve and mesh subdivision it seems it is hard to touch everywhere.

So calculate closest point from vertexes of mesh on curve then measure closest point on mesh from these points on curve. I think this give something not to far from what you want, then remap value and use Graph Mapper, value at 1 (and more) must be 0.

mesh follow curve with fall off.gh (2.3 MB)

Hi,

Your node setup is great and this is exactly what I need. Thanks so much for your help !

I am happy if it is useful.

On coarse mesh I see a problem on one point, I didn’t look at it to figure what is the cause of the problem. Don’t hesitate if it affect too much the result.

Hi,

That’s fine, i can twist a little bit based on your set up to archive what I want.

By the way, May i ask about another thing? I am thinking to create another topic, but as proffesional people in this topic, so i just want to take the opportunity to hear from you.

Is it possible to replace the original geometry in 3D view by grasshopper geometry. I am trying to create a command by using grasshopper player, after running a setup and geometry is baked, the baked geometry and the original one are both appear on the 3D view which is not what i want. not sure how to delete the original one automaticlly by grasshopper?

Thanks again

Hi @laurent_delrieu ,

Please ignore my question about delete original input, as i just found the answer here: Grasshopper/Python - Replace geometry while keeping GUID - #17 by pawel

Again, Appreciate with you support.

Have a good day