Select points on top/bottom surfaces of VDB

   2527   2   0
User Avatar
Member
43 posts
Joined: April 2018
Offline
Hi, I have a point volume that I need to be able to select the points that are facing up and down i.e. any point that doesn't have a point directly above or below it in the grid spacing (see attached image) I'm not sure if there's any way to search with a direction vector for a given point? Like for each point check to see if there is a point directly above or below in the next grid spacing in a directional vector (0,1,0 or 0,-1,0) Or any other way that exists that this could be done?

Cheers - Aten.

Attachments:
Capture.JPG (91.4 KB)

User Avatar
Member
43 posts
Joined: April 2018
Offline
Ok I found a command called ‘pcline’ which was good for this. I got all the points in a row (0,1,0) with current point into an array then checked their distances against current point with a cutoff search distance. Then got the sign of P.y against checked point P.y to decide whether it was above or below that point. Worked pretty well after a bunch of faffing with vex syntax (I'm sure it will get easier one day !

Attachments:
01.JPG (91.5 KB)
02.JPG (102.9 KB)
03.JPG (270.6 KB)

User Avatar
Member
3 posts
Joined: June 2015
Offline
how to use pcline? help me~
  • Quick Links