Hi everyone.
I need help with this issue I encountered. Please see the video explanation in here: https://youtu.be/4lZ3EEF4niw . Basically, I have a GH script that works fine if I Run it from Rhino directly. But, it creates a different result as a GH component.
In summary, the component puts the Pallets offset to the back, and the orientation of the orange beams is upside down. Any ideas why?.
This is weird because I have created very similar scripts that don’t have this issue. in fact, this script is a modification of an existing and more complex one.
unless you’re providing codes for us to compare, i don’t think there’s much anyone can offer.
the most likely scenario is that you coded something wrong.
The sorting will happen within each branch and not on the whole tree. So each pair of points are sorted separately. And since each pair has identical values, the outcome is arbitrary.
Apparently you get a different ordering directly from Grasshopper than through the Tekla component due to some kind of rounding variations - the result could be impacted by the different coordinate systems as Oskar mentions, since the absolute values would be different, but the numbers would still be identical to each other.
In any case just get rid of the sorting (i.e. bypass with red arrow) to get the same results both ways. You might or might not want to reverse the lists as well depending on which outcome is desired.
Thank you Both, And again Sebastian you solution is spot on. I am very impressed how you can debug this scripts. I would have never solve it without your help.