Find highest point for each Y-value

unhandled

(Reinoutvanarnhem) #1

Hi

I need to make a surface around multiple breps. I decided to slice the breps with some YZ-planes, the result can be seen in the picture. Now I would like to select the highest point for each Y-value.


So in this case I need to find three points ((0,0,5);(0,5,5) and (0,8,3)). I am trying to find a selection rules that allows to select the highest Z-value, for each Y-value that is present, but don’t have much succes at it for now. Important is that it should be a method that can be applied to random breps.
Anyone with an idea how to solve this problem?

Kind regards
Reinout van Arnhem


#2

Group the points in different branches according to their Y coordinate, sort them using the Z coordinate and select the last one.
Canvas%20at%2021%3B12%3B52

Find highest point for each Y-value.gh (8 KB)


(Reinoutvanarnhem) #3

Hi

Thanks it worked. Now that was the first part. I adapted it so that it gives me the highest point for each combination of X- and Y-values. It worked when I slice the Brep in max 10 slices, but when I exceed that amount of steps, it gets faulty. I’m using a clone structure component and this doens’t work like expected when the step size is exceeded. It doesn’t clone the same tree structure as given in the input. Do you perhaps know a solution for this problem? Am i making this to complicated?

Kind regards
Nieuw oppervlak bepalen.gh (28.6 KB)


#4

I don’t have treesloth installed so I can not undestand your def.
But!
Canvas%20at%2017%3B39%3B02