qbick Posted December 3, 2012 Share Posted December 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. Quote Link to comment Share on other sites More sharing options...
Annon Posted December 3, 2012 Share Posted December 3, 2012 Ok so if you can get the point number of the furthest point (do a pc iterate and just take the max distance), then you can do an attribute import with that point number to get the position you're after. If this doesn't make sense I'll jump into Houdini in a bit and create you a sample scene. Quote Link to comment Share on other sites More sharing options...
qbick Posted December 3, 2012 Author Share Posted December 3, 2012 Ok so if you can get the point number of the furthest point (do a pc iterate and just take the max distance), then you can do an attribute import with that point number to get the position you're after. If this doesn't make sense I'll jump into Houdini in a bit and create you a sample scene. with pcfarthest i can only get distance, not point number. if its not hard for you - can you build a little example? Quote Link to comment Share on other sites More sharing options...
eetu Posted December 3, 2012 Share Posted December 3, 2012 I don't think he meant pcfarthest. Actually the points returned by pcopen should be returned in proximity order, so the first should the closest one and the last the furthest away. Quote Link to comment Share on other sites More sharing options...
Annon Posted December 3, 2012 Share Posted December 3, 2012 Ok I'm on a small laptop with a one button mouse, so that was slightly frustrating! I have to set something up for home use that's not a complete PITA. This looks like it does what you want though. Returns the point position of the furthest point from the point cloud open node, so mess with your distances/number of points there. Hope that helps Christian furthestPointPos.hip Quote Link to comment Share on other sites More sharing options...
qbick Posted December 3, 2012 Author Share Posted December 3, 2012 Ok I'm on a small laptop with a one button mouse, so that was slightly frustrating! I have to set something up for home use that's not a complete PITA. This looks like it does what you want though. Returns the point position of the furthest point from the point cloud open node, so mess with your distances/number of points there. Hope that helps Christian thanks for help! Quote Link to comment Share on other sites More sharing options...
DanBode Posted December 3, 2012 Share Posted December 3, 2012 I took a look at the file and went to throw together an alternate method, but the values I was getting did't match yours. It looks like the max vop, when working on vectors, gives you the maximum value in each component, which is causing your pointPos values to be incorrect An easy way to get the P attribute of the farthest point in your point cloud is to use the Point Cloud Num Found node to get the total number of points returned by pcopen, then subtract 1 from that number and plug it into a Point Cloud Import by Index node. Quote Link to comment Share on other sites More sharing options...
bloomendale Posted December 3, 2012 Share Posted December 3, 2012 why not just iterate through pc and the last point will be the farthest. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.