Grasshopper

algorithmic modeling for Rhino

Hey everybody... (hey Dr. nick!)

Im at that point in using grasshopper where im having to code to achieve what i want to do. The problem is im still fairly green to this. what i would like to know is how do i write the equviliant of the math -> domain node in C# i basically want two domains (one for my u values, and one for my v values) that i pass in doubles.

i was able to pass in a domain from a different node and assign it to a to a local

UVInterval stan = x; (x being the parameters that im copying into the node)

and was able to reture stan's properties.

but if i try to create a completely local UVInterval i cant access or assign any of its properties. out of desperation I tried things like this

UVinterval cartman.U1 = 5; ....or   int UVinterval cartman.U1 = 5; ...or

double UVinteral cartman = 5.0;

but none of this is working... i think it wants me to assign it a type but how the hell do i do this... or am i just completely wrong in my approach?

M

Views: 1003

Replies to This Discussion

Hi Mario,

UVInterval stan = new UVInterval();

stan.U = new Interval(20, 25);

stan.V0 = 50;

stan.V1 = 68.4;

does this not work?

--

David Rutten

david@mcneel.com

Poprad, Slovakia

yeah, that does it.

thanks!

M

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