Grasshopper

algorithmic modeling for Rhino

Hi all.

Anyone know how to flip the UV directions of a surface within a C# script component? I can't seem to find the apropiate method...!

Thanks

 

Jose Luis

Views: 1542

Replies to This Discussion

Surface.Transpose(), if memory serves

Yeah, that's what I thought, but can't really make it to work

 

private void RunScript(Surface x, bool y, ref object A)
  {
    Surface s = x;
    if(y) x.Transpose();

    A = s;

  }

 

Attachments:

try this:

 

private void RunScript(Surface x, bool y, ref object A)
{

  Surface s = x;   

if(y) s = x.Transpose();   

A = s;

}

Oh my God, I'm such a noob... hehe.

Thanks a lot Andrew, it's working perfectly now.

 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service