generative modeling for Rhino
I know this is a very basic question. but I am trying to set the domain of a curve to t0=0 and t1=1.
in the c# component i referenced x as a curve.
A = x;
But it doesn´t work....
Can any one help me?
thanks in advance!
the Interval type in RhinoCommon is a struct (Value Type), not a class (Reference Type). What this means is that when you ask a Curve for it's domain, you get a copy of the actual interval. Changing this copy doesn't accomplish anything and therefore the compiler won't let you do it.
x.Domain = new Interval(0, 1);
is what you want.
I have got it! Thank you very much!
Hi Benjamin and David,
Is there any way to do this (set curve domainthe to 0-1) without the C# component (without scripting i mean)
Right click on any curve input and select 'reparameterize'
simple and helpful