Doum Posted May 10, 2013 Share Posted May 10, 2013 Hi, I'm trying to get the maximum value of a set in vopsop. I subtracting the centroid of a grid with the pointpos and get the length of that vector to get the distance of each point from the center. How can I get the higher value of this set? I want to plug it in the source max value of the fit node. thanks Quote Link to comment Share on other sites More sharing options...
rafaelfs Posted May 10, 2013 Share Posted May 10, 2013 You can use an attribute promote from point to detail using maximum as the operation. You can't do that in VOPs (I don't think) because the current point being processed has no way to query the other points usually. You could create an array with all the distances, but it's too much work for the buck. Cheers Quote Link to comment Share on other sites More sharing options...
bloomendale Posted May 11, 2013 Share Posted May 11, 2013 Actually you can use for loop in vop sop. but it's better to use vop sop to find distances + attrib promote sop to find max distance (~10% faster). Quote Link to comment Share on other sites More sharing options...
Doum Posted May 13, 2013 Author Share Posted May 13, 2013 Thanks guys! So do I need 2 vopsop to get my value? or I can do the attrib promote after the vopsop node and get the info back inside vop (place before the attrib promote node) ? Quote Link to comment Share on other sites More sharing options...
bloomendale Posted May 13, 2013 Share Posted May 13, 2013 here is file with 2 methods - vopsop with forloop and vopsop + attrib promote. 3ak_maxdistance.hipnc Quote Link to comment Share on other sites More sharing options...
Doum Posted May 13, 2013 Author Share Posted May 13, 2013 thx bloomendale! 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.