Grasshopper

algorithmic modeling for Rhino

Hey guys,

I'm having a nightmare sorting out individual surfaces that are the result of splitting a large surfaces into smaller panels. I'm trying to get hold of a rhino script or grasshopper definition that allows you swap the U and/or V direction of a surface. I came across this on the forum which is helpful:

http://www.grasshopper3d.com/forum/topics/switch-uv-coordinates?id=...

However it is only possible to switch the Vs with the Vs. Is there one out there where you can reverse the direction of the U independently, and the same with the Vs?

I don't understand why you can't use the "DIR" command in rhino for multiple objects (you can only flip them). There must be some king of rhino script out there, no?

Thanks,

Dan

Views: 6193

Replies to This Discussion

in c#:

private void RunScript(Surface S, bool swap, bool flipU, bool flipV, ref object A)
{

if(S != null){
if(swap) S = S.Transpose();
if(flipU) S = S.Reverse(0);
if(flipV) S = S.Reverse(1);
}
A = S;
}

The Plug-in Lunchbox also has a component that does this if you din't want to code it yourself.

WOW, the lunch box plugin is amazing, I had no Idea this existed, thanks danny!

Andrew, if I wanted to use the code, do I just copy this into the Rhinoscript editor and save it as a RVB file?

Thanks for the replies guys.

dan

Wow! very useful. Thank you very much Andrew.

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