[Sidefx-houdini-list] Connected Primitives

Simon Barrick simon at primalpictures.com
Wed Oct 11 04:43:08 EDT 2006


Indeed there is. Always worth explaining the "true" problem you are trying to solve.....
Cheers
Si

-----Original Message-----
From: sidefx-houdini-list-bounces at sidefx.com [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Jaideep Khadilkar
Sent: 10 October 2006 19:00
To: sidefx-houdini-list at sidefx.com
Subject: RE: [Sidefx-houdini-list] Connected Primitives


Hi Simon..
Thanks for ur Reply. 
While experimenting, I figured out the solution. I first took the point closure of the 
primitive, and then the primitive closure of the resultant point group. This way I got the connected primitives. Also iterating the process, I found how to get all connected primitives. Now the intresting part starts. All these thing I was doing to seperate polygon  units from each other, to be used in dynamics, as a glue object. And then from a reply on Odforce, I came to know that there is already a "connectivity" sop for that. So silly !!!!!

Anyway, thanx for ur support.

-----iamjaideep80
Jaideep Khadilkar
(Sciclone Motion Graphics)

Simon Barrick <simon at primalpictures.com> wrote: Can you just convert the point group to a prim group afterwards? As to using prim_closure I'd be interested in that, I thought those closure method only worked when you were going from say point to prim, or edge to prim, which matches what you are seeing. But then again I never noticed there was a prim_closure that took a prim group before...... Si

-----Original Message-----
From: sidefx-houdini-list-bounces at sidefx.com [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Jaideep Khadilkar
Sent: 10 October 2006 12:20
To: sidefx-houdini-list at sidefx.com
Subject: RE: [Sidefx-houdini-list] Connected Primitives


Hi Everybody....

There is another problem.
I have added only one primitive, say primitive number 0 to from_prim_grp. and I want to gets its connected prims. to to_prim_grp. So I am doing.....

to_prim_group = prim_closure->getPrimitiveClosure(*from_prim_grp);

But it is not working. My to_prim_group also has the same primitive, primitive num  0, in it. Strange thing is, when I find the point closure instead of prim, like

to_point_group = prim_closure->getPointClosure(*from_prim_grp);

It gives me all the connected points to that primitive, and working fine.

I want to know, where I am going wrong. getPrimitiveClosure gives the group of connected primitives, right? To test, I am using Polygon Sphere.


-----iamjaideep80
Jaideep Khadilkar
(Sciclone Motion Graphics)


Simon Barrick  wrote: Yup, that's the one. You'll probably need to loop through all the edges or points in your original prim and find the polys connected that way. I don't think there is a direct way of finding prims connected to prims. None that I've used anyway. Be interested to hear if there is though. Si

-----Original Message-----
From: sidefx-houdini-list-bounces at sidefx.com [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Jaideep Khadilkar
Sent: 10 October 2006 07:56
To: Houdini Mail List
Subject: [Sidefx-houdini-list] Connected Primitives


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)
   
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min. _______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list


   
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min. _______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list


 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

______________________________________________________________________
This email has been scanned for Primal Pictures by the MessageLabs Email Security System.
______________________________________________________________________



More information about the Sidefx-houdini-list mailing list