Vex: Finding near point in a specific direction

   3404   6   1
User Avatar
Member
393 posts
Joined: Nov. 2016
Offline
In a point wrangle, I'm trying to find the nearpoint in Input 1, but I'd like each point in Input 0 to look in a specific direction (a cone around a vector attribute) and ignore points in other directions. Anybody has a general idea on how to get started with this?
User Avatar
Member
475 posts
Joined: July 2005
Offline
One way might be using nearpoints() function and filter the point list by angle to a direction.

Attachments:
nearpoints_cone_filter.hipnc (105.7 KB)

User Avatar
Member
30 posts
Joined:
Offline
pccone radius? might only be in newer versions.

https://www.sidefx.com/docs/houdini/vex/functions/pccone_radius.html [www.sidefx.com]

cheers,
chrisg
User Avatar
Member
393 posts
Joined: Nov. 2016
Offline
Thank you both! pccone_radius ended up working great for what I needed.
User Avatar
Member
3 posts
Joined: July 2017
Offline
Does this function "pccone()"work on POPS?
User Avatar
Member
7771 posts
Joined: Sept. 2011
Offline
mmf3358
Does this function "pccone()"work on POPS?

wasn't pops removed from Houdini? It's been deprecated for years
User Avatar
Member
8555 posts
Joined: July 2007
Offline
mmf3358
Does this function "pccone()"work on POPS?
It should work in any contexts that allows VEX shaders
So even POP DOP nodes that support VOPs or VEX snippets. if that's what you refer to as POPs
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links