How to get the number of pts inside of the pc search radius?

   5533   8   1
User Avatar
Member
8 posts
Joined: Sept. 2011
Offline
Hi there,

I would like to know how to get the number of points inside of the point cloud search radius. Any advice would be appreciated.

Thank you.
Tatsu3d
User Avatar
Member
512 posts
Joined: July 2009
Offline
attached a file for you, it's easy!

cheers,

Manu

Attachments:
pointCloud_pointCount_Manu.hip (177.8 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
8 posts
Joined: Sept. 2011
Offline
Hey Manu,

This is awesome and really helpful!

Thanks!!
Tatsu3d
User Avatar
Member
8592 posts
Joined: July 2007
Offline
it's even easier
it's called Point Cloud Num Found VOP, just connect handle to it and it will return number of found points within radius and max point count limits set on pcopen

this function is available from H12 though so in H11 you still need to count them in loop
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
512 posts
Joined: July 2009
Offline
thanks for mentioning that! Do you know if there is a vex equivalent as well?
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
8592 posts
Joined: July 2007
Offline
it is pcnumfound()

Houdini 12.0.517: New VEX point cloud functions pcnumfound and pcimportbyidxFOO, with corresponding VOPs pcnumfound and pcimportbyidx. These allow processing of point cloud searches using a For VOP rather than black magic and ritual sacrifices.

I included example of usage of both functions to For Loop through pointcloud instead of While Loop in this post
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=121576#121576 [sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
512 posts
Joined: July 2009
Offline
oh, interesting, this workflow is new to me!
appreciated man!
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
That file was awesome !

r
Gone fishing
User Avatar
Member
8 posts
Joined: Sept. 2011
Offline
Hey tamte,

Thank you for further info. That was awesome too! It is always good to know old and latest way to achieve something. Very cool.

cheers
Tatsu3d
  • Quick Links