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

  • Parametric House

    Nice work, That is surely useful. Thanks

  • Thomas J. Mrokon

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

  • shalom buberman

    Nice work but,

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

  • horst Becker

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

    and in that context a normal flip option could be useful

  • djordje

    @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.