Grasshopper

algorithmic modeling for Rhino

hi guys

i have a problem of data tree matching

the data tree in yellow box on the right use the same data structure but different path indexes.. how is that making different? i just can't understand the logic behind it ..thx

 

 

Views: 741

Replies to This Discussion

Hi,

What seems to be the problem here?
ahh... seems the prior problem becomes how to add pictures in my post?
When you first start up a topic you need to click on the blue icon 5th from the right.



When you reply it's the icon of the camera 2nd from the right

that's wierd .. i just can't see any toolbar here .... is there a limitation for newly registed user?
i guess its sth wrong with my ie .. i hope i can figure it out later..
anyway, thx Danny !
ok i get the pictures right , hope not tooo late..
我顶啊!
Is it making a difference to you results?

If not then don't worry about it. If it is then use a simplify component to remove the leading zeros. This will produce the same results even if there aren't any leading zeros.

Some components create branches after they transform the subject, but with out looking at your GHX file I can't really say why one curve is being treated differently to the other.
sorry, i didn't make myself clear enough.. my purpose is to understand the logic of matching data trees , so i created that example to help demonstrate the problem.

in first picture i simplely dumpped two stream of dots into a "line" component(which draw a line between two given dots). the data stucture of both stream were shown on the right and matching result on the left .


in second picture. i didn't touch anything except changing the path indexes of 2nd stream by adding a "leading zero" . then the matching result changed , in a bizarre way i may add.


i've heard a lot about the index number has nothing to do with matching result. then why is this happening . i hope i am just being stupid and someone could help me out here... but i've been trying to figure out the data trees matching rules for a while..THX!
I'm with you now. In the first example the first point in list one {0}(0) is matching to {0}(0) and {0}(1) in list two. And list one {1}(0) is matching to {1}(0) and {1}(1) in List two. But because the cross reference is set to longest list the Last points in List two (shortest) have to connect to the remaining points in List one, {2}(0) is matching {1}(0) and {1}(1). If you had equal sets of points then they would have carried on in the same fashion as before.

In your second example this is where it goes a bit "wonky" to quote David, (And maybe he should be made aware of this example) because the first is matching the first set of branches and Last is matching the Last, as to why this is different is beyond me. Sorry

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service