240812 Catenary Fail.gh (26.9 KB)
Hello,
The script I’m working with is intended to create 7 catenary curves with varying lengths, but at the actual Catenary component creates 21 curves instead. Does anyone know why this is happening?
240812 Catenary Fail.gh (26.9 KB)
The script I’m working with is intended to create 7 catenary curves with varying lengths, but at the actual Catenary component creates 21 curves instead. Does anyone know why this is happening?
What pattern do you expect? Looks to me like you need one more point (yellow group).
If you wire ‘3 Points’ instead of the yellow group, all but one curve looks correct?
P.S. If you connect PLine to Weave, you get a preview of the pattern.
this happens because of the data structure you are providing to the component Inputs
if data trees are not matching, GH will just repeat the very last item/branch until it reaches the length of the longest list in play (at the end of the game, everything must be matched, you need enough data to work with from each input)
in this particular case, as you are providing 7 different branches as Length input, GH is repeating branch {2} from both Point A and Point B, in such a way branches {3} to {6} of Length “are covered” and have some data to work with
easier to visualize in this colorful scheme:
for more in-depth explanations and very valuable examples, have a look at these (the first link is a playlist)