Grasshopper project curves on mesh surface

the grasshopper project component works to project curves onto a brep or surface, not a mesh surface
is there a way to curves project onto a mesh surface?
the mesh surface is a result of a kangaroo application draping a mesh planar surface onto a sphere

2 Likes

Hi @cshea,

Attached is a custom C# component you can use.

Cshea.gh (12.5 KB)

– Dale

20 Likes

Hi Dale
Thanks!!! it works well!!!
wish it was always so straight forward!!!
really appreciate this!!!

This is very cool @dale, Any chance you could make a variant of this to use the pull curve command instead of directional projection? it’d be super handy for a Curve-based SubD thing we are doing.

Thanks!

G

2 Likes

Hi @gustojunk,

How is this?

Gustavo.gh (23.9 KB)

– Dale

11 Likes

Hi @dale, thanks so much. that works great!

Hi, @dale
I’m trying to do the same, but I can’t download the attached file you gave to Cshea.
Can you please help me?

Hi @nrangel91, You should be able to download that file now.
Let us know if that is not the case.
Thanks,
wim

Hi there,

Thank you so much for that C# component! However, I’m having a problem and I’m not sure where it lies:

I modelled a little mesh with Kangaroo and I wanted to project some curves on it. The C# does almost the whole work but somehow not in the central parts:

grafik

I don’t have a clue of why this is happening or what I could do, so any help would be appreciated:)

Projecting lines onto a Kangaroo mesh.gh (14.4 KB)

Thank you so much Dale! Worked perfectly

Hi, thank you so much for this, it works perfectly and fast, really good !

Great, thanks! apprecite it.

Hi Dale,
It works very well
Thank you : )

I had been searching for almost 2 hours for this very solution. Thank you for uploading this. Tremendously helpful!

Cheers!

It is possible the provided script is not keeping original index of curves? I mean, the index of original curves is different from the ones projected.

@dale can you please add a project curve to mesh component to Grasshopper?
It seems strange that this isn’t included already :slight_smile:

1 Like

Hey @Holo,

I’ve added your wish to the pile.

https://mcneel.myjetbrains.com/youtrack/issue/RH-64440

– Dale

1 Like

@dale
Excuse me, I can’t see how the command works
A = Curve.ProjectToMesh (curve, mesh, dir, tol);
I have tried other procedures and the results are not the same
Line-Project_2_Mesh.gh (96.2 KB)

Hi Everyone,

Big wish for the “project curve to mesh” and could you add points as well.

I found this, but don’t know how to use it in GH:

Maybe someone can help me in the meantime…

Cheers,
Thomas

See the attached.

ProjectPullToMesh.gh (14.8 KB)

– Dale

1 Like