pcopen find farthest point from sampled ones

   4849   2   1
User Avatar
Member
102 posts
Joined: March 2012
Offline
afaik pcopen finds closest points to given one.
im need to find the farthest one from found.
for example pcopen finds 10 closest points - from that 10 points i need to get P-attrubite from farthest one.
can someone help me please?
i found point cloud farthest node in vop, but it finds a farthest distance to point - im need to get an P-attribute, not just a distance.
thanks.
User Avatar
Member
9378 posts
Joined: July 2007
Offline
the points returned from pcopen are queued by distance so if you take the last one it will be the furthest one
to get its index you can use ( pcnumfound VOP - 1 )
then just import any attribute from it using pcimportbyidx
and don't forget to close your pcloud afterwards since you weren't iterating through all queued points
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
102 posts
Joined: March 2012
Offline
tamte
the points returned from pcopen are queued by distance so if you take the last one it will be the furthest one
to get its index you can use ( pcnumfound VOP - 1 )
then just import any attribute from it using pcimportbyidx
and don't forget to close your pcloud afterwards since you weren't iterating through all queued points
its working!
thanks!
  • Quick Links