Nibbler Posted April 15, 2013 Share Posted April 15, 2013 hi, can anybody check this hip and say why it's work this way, grid | sort(from 0 point) | facet(unique points) | attribcreate(primitive 'primitive_number' value=$PR) | partition(NR_$PRIMITIVE_NUMBER) when I use in partition $PR all primitives act like separated primitives, but when I use primitive_number it works doesn't make sense IMO coz: $PR == $PRIMITIVE_NUMBER please explain crack_ground_c.hipnc Quote Link to comment Share on other sites More sharing options...
bloomendale Posted April 15, 2013 Share Posted April 15, 2013 because $PR is always updating. it's just reflects order in which primitives are worked on. While primitive_number attrib is the copy of the $PR at that particular place in network. Then you add extrude to every primitive so you primitive_number attrib was inherited by new primitives from the one they extruded from while $PR is just recalculated to account for all (old and new) primitives. Example: you have 1 primitive with $PR ==0 and primitive_number == $PR (at this particular node in network) ==0 then you extrude you primitive. and now you have 5 primitives with newly calculated $PR from 0 to 4 and they all have primitive_number ==0 (inherited) Quote Link to comment Share on other sites More sharing options...
Nibbler Posted April 16, 2013 Author Share Posted April 16, 2013 now it make more sense, thanks for explanation Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.