Grasshopper

algorithmic modeling for Rhino

Reverse U and V with the VB's function : OnSurface.Reverse

Hello!
I am trying to reverse the U and V coordinates of a surface with grasshopper, but it's not possible.
So i'm trying to do it with VB script in Grasshopper but i am not very good with the script.

Is some one could help me?

There is the function : "OnSurface.Reverse(Dir As Int) As Bool
If Dir=0 it's "s" if Dir=1 it's "t"
i don't know what "s" and "t" mean, and i don't know how to write the code !!!

Views: 1105

Replies are closed for this discussion.

Replies to This Discussion

OK.
It's been one week that i look for this and i have found !!!
It's not "Onsurface.reverse()" but "OnSurface.transpose()" like this !!!!!

Sub RunScript(ByVal srf As OnSurface, ByVal uvbyvu As Boolean)
If uvbyvu Then srf.Transpose()
A = srf
End Sub

But thanks to Dalmien Alomar, to help me !!!!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service