Grasshopper project curves on mesh surface

Hi Dale
Thank you,

But does this one include points?
I can only add curves to the component.

But this guy help me out in another thread:

But thank for your reply!
Cheers
Thomas

Thank you!

I am trying to morph some curves from uvw coordinates onto u’v’w’ coordinates (i.e. the source surface does not use rectilinear coordinate system, but is a flattened approximation of the target surface.
I don’t want to impose xyz coordinates on the original, because I need to preserve the relationship of the mapped curves to all of the surface edges. Is there a way to do this?
uvw demo.3dm (366.5 KB)

Hello @dale and eveyone.

I was tring to pull a helix curve on mesh I created on kangaroo. But unfortunetly it gives a very scribbled projection. Has anyone found a solution for this?. I also tried the project method but no luck.
Let me know if you find my error.
Thanks.
Pot Design Spiral path 2.gh (460.2 KB)


Pot Design Spiral path 2.gh (398.2 KB)

For your shape it looks like an intersection would work better - here creating a helicoid surface by lofting the helix and a vertical line along its axis, then intersecting that with the mesh.

Maybe something like this?


Pot Design Spiral path 2-b.gh (468.4 KB)

Hello @DanielPiker @akilli
Both of your ways work…
Thank you.

Hi @dale ,

The C# component works perfectly, but when i try to execute ghfile with hops or in python with Rhino Compute the C# script doesn´t works.

I try with other functions of Rhino.Geometry like Rhino.Geometry.SplitWithProjectedPolylines() and it works.

Any idea why it doesn´t works?

Attached is the gh file with C# script and the hops grasshopper component with curve and mesh internalised.

C.gh (416.9 KB)
hops_C.gh (416.8 KB)

  • Diego

@AndyPayne - is this something you could help with?

Hi Diego. We did find a bug in Rhino core regarding how Rhino.Compute deals with the Curve.ProjectToMesh method. This has been fixed in the next service release 8.12. However, I also noticed some errors in the C# code that you were using. The most notable was the reference that you made that was calling into the active RhinoDoc to get the model tolerance value. You have to remember that Rhino.Compute is running headlessly which means there is not RhinoDoc that you can access. So, this would have thrown an error, regardless of the issue that we found in the ProjectToMesh function.
I’ve updated your definition (see below) and have hard-coded a tolerance value into the C# code. You could create another numeric Context Get component and pass the tolerance in that way as well if you want to have access to this value via Hops. Anyway, please review and let me know if this fixes your issue. Again, this won’t work until you have the latest version of Rhino 8.12 to work from.
C.gh (421.0 KB)

Thanks for your answer Andy!