Grasshopper

algorithmic modeling for Rhino

what happened to surface.transpose in the latest release?  is it now surface.Domain(0).Swap?  thanks

Views: 456

Replies to This Discussion

Hi Tuan,

Surface.Transpose() is not there yet in RhinoCommon. It will probably be added by Steve in one of the next releases.

Surface.Domain(0) will return the first domain (Interval) - the U interval, which is a ValueType. It represents a copy of this domain. So, anything done to this copy will apply to this copy and the original surface will not be affected. This is one of the explanations why this is not working. Another is that Transpose() swaps U and V, so it needs to be working on both at the same time: reading the "control points rows" like they were "columns".

Is there another way for the time being to do what you are looking for? Or can you try using the old SDK if this is urgent?

- Giulio
___________________
giulio@mcneel.com
McNeel Europe, Barcelona
Hi Giulio

This is not urgent at all. I'll just use rhino Direction command for the swap. Thanks for the thorough explanation.

T
Surface.Transpose() will be available in the next WIP of RhinoCommon. This function will return a new transposed Surface on success and null on failure.
Thanks,
-Steve
thanks for the update Steve.

T

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