I wanted to know if its possible to change curve types on GH.I am linking curves from Rhino to GH and depending on the type I get a very different outcomes where some components don’t work.
For example, if I try to use any of the curve evaluation components when I have planar curves, I get the following error message:
Parameter is outside the curve domain, results may be unpredictable.
How can I overcome this? Any feedback would be appreciated, thanks in advance!
why is that the safest? Or in other words, what’s unsafe about working with the original parameters? I also wonder if there is something against setting all parameters to the 0-1 domain, or is it simply a mapping trick and nothing really changes?
It makes me wonder: If there are no downsides to remapping, why curves and surfaces aren’t remapped automatically always then… what is the purpose of a -13.7878 to 122.3123 domain anyways? Can you think of a case where a remap is not wanted?
BTW: take the challenge: (a) Add Face List support (meaning 2 dim Trees), (b) mastermind a “proportional” (on per Face Domain basis) U/V division policy AND (c) write something that yields various patterns (Pieces, Polylines, cats, dogs etc etc).
Most commands try to set the domains so that it corresponds to size of the objects. The domain is just an additional information which might be useful in some cases.
Just a simple example: With a circle of radius=1 the domain ranges from 0 to 2*PI. If this circle is split then it is easy to recognize the original segment’s order/positions by the domains. If all segments would range from 0 to 1 it could be a nightmare.
There are also some methods in Rhino Common which work with “normalized” parameter space (0-1).
Also I seem to remember that some objects caused problems by simply reparametrizing it. Don’t know what it was exactly or if this “bug” has been fixed meanwhile.