This is what the code looks like:
Wrangle 1
for (int i = 0; i < npoints(0); i++) { vector p = point(0, "P", i); f[]@attribute[i] = p.y; }
Wrangle 2
@max = f[]@attribute[0]; @min = f[]@attribute[0]; for (int i = 0 ; i < len (f[]@attribute); i++) { if (@min > f[]@attribute[i]) { @min = f[]@attribute[i]; @ptmin = idtopoint(0, i); } if (@max < f[]@attribute[i]) { @max = f[]@attribute[i]; @ptmax = idtopoint( 0, i); } } resize(f[]@attribute, 0);
I get the result I want in a test case of 100K points scattered over a Mountain Sop deformed Grid. My worry is that this solution won't scale very well so I've been investigating “Run over Numbers” but I can't get the Wrangles to write the array info to Detail attributes in the same manner as running the Wrangles in “Run over Detail(once only)” mode.
I'd ideally like to suss this out as it seems a perfect opportunity for splitting the job up to multiple threads so the solution will scale better, but there's no usage documentation anywhere other than the cryptic tooltips and associated help card info.
Any guidance would be most appreciated.