Sorting/unitizying multiple surfaces direction UVS


sortUV.gh (14.5 KB)

Try this c# script (I’ve added comments inside, maybe you’ll understand/learn something … it’s useful)
This script do:

  • evaluate the surface at center (like reparametrized at 0.5,0.5) and extract U and V vectors
  • test which of the 2 vectors is more suitable to be aligned with World X vector; if V then it swap UV
  • invert U domain if not aligned with X
  • invert V domain if not aligned with Y

I wasn’t able to keep original domain span, to work you need to reparametrize the output surface…

7 Likes