Jump to content

Connected Primitives


Recommended Posts

Hi Everybody.....

Just wanted to know, how to a get a list of primitives that are directly connected to a perticular primitive. I think the GEO_Closure class will help, but not sure.

Also I want to get a list of all primitives that are directly or indirectly connected to a perticular primitive. Is there any function to directly get that, or I have to loop thru all of them to get the information.

Waiting for ur answers.

-----iamjaideep80

Jaideep Khadilkar

(Sciclone Motion Graphics)

Link to comment
Share on other sites

To find the number of connected prims you could first use a connectivity SOP and partition SOP to create groups based on a prims connectivity. Then you can use the primlist( ) expression, which lists all the prims in a group as a string, but since you want the number of prims you would have to put the primlist expression inside an argc( ) expression so it would look something like this...

argc(primlist("../partition1", "group_1"))

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...