Grasshopper

algorithmic modeling for Rhino

Hello!

Anyone knows, how to convert 'contour' curves to 'uv' curves?

Views: 513

Replies to This Discussion

By 'uv' curves you mean curves whose coordinates are no longer defined in world XYZ space but in surface UV space?

Although Grasshopper doesn't support 2D curves, it is possible (at least in principle) to map a curve from world XYZ to world XY space using a projection to surface UV space as a mapping function. You could either iterate over all control-points and map them onto surface UV, or you could actually sample the curve and get an answer within a certain accuracy.

It will be relatively easy on single surfaces but a lot harder on polysurfaces as the UV domains are [1] not continuous and [2] possibly overlapping. So, is it only a single surface in your case?

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I attached a file with one solution for control-point mapping and another solution for total curve remapping. The latter requires a VB script, but the script is very simple:

Cuv = S.Pullback(C)

Hope it helps.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thank you for the answer. 

I`ve understood, that my question wasn`t so correctly. I mean: I have Polyline - 01.img - and I want to move to Surface, like on 02.img.

Attachments:

I figured out, how make it!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2026   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service