pcopen find farthest point from sampled ones

   5034   2   1
User Avatar
Member
102 posts
Joined: 3月 2012
オフライン
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
9493 posts
Joined: 7月 2007
オフライン
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: 3月 2012
オフライン
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