Jump to content

fractured object, partition sop needs attribute create to work


Nibbler

Recommended Posts

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...