Grasshopper

algorithmic modeling for Rhino

Reverse and swap U and V directions of surface

This small definition reverses U and/or V direction of a surface and/or swaps them.

It emulates Rhino's "Dir" command.
Requires ghPython plugin installed.

reverse_swap_UV.gh

reverse_swap_UV.3dm

Views: 1034

Tags: direction, reverse, surface, swap, u, uv, v

Comment

You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by Jake Hebbert on February 12, 2014 at 9:27am

Thanks Djordje.  This was giving me a lot of trouble before your help.  

Comment by djordje on February 12, 2014 at 8:53am

@horst Becker:
Sorry for that. Check the upper .gh file. I added the "revSrf" output.
Grasshopper already has a its native component which flips the surface normals direction ("Flip"). That is why I thought it may be redundant to add this option too.
Still if you need it, here is the version with flip normals (flipping normals does not affect uv directions).

@shalom buberman
LunchBox "Reverse Surface Direction" can produce 3 combinations (either reverse U, or reverse V or swap UV). The upper component does 8.
Out of those 3, only 1 is usable (swap UV):

Edit: Sorry for flooding guys. I am having difficulties with uploading photos.

Comment by horst Becker on February 12, 2014 at 3:19am

nice one, but could you include an uv swaped or reversed surface output?

and in that context a normal flip option could be useful

Comment by shalom buberman on February 12, 2014 at 12:26am

Nice work but,

 Lunch Box has a tool for it: 'reverse surface direction'

Comment by Thomas J. Mrokon on February 11, 2014 at 1:13am

nice, I used a similar tool in lunchbox, but this one has a preview like in rhino

Comment by Mohammad Yazdi on February 11, 2014 at 12:02am

Nice work, That is surely useful. Thanks

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service