Taking the lowest value from each line on lists

I need to compare each line from 2 or more lists and take whichever value is the lowest.

I think I need to do something like on the link below, but I have no idea what any of these things are called since the guy who replied has his display settings to not show the names of the modules. (I would reply on this Fourm but it wont let me sign in and I cant see a make an account button anywhere)

If anyone is curious on my usecase… I am using Dendro to create a variable thickness lattice that is thicker the closer it is to a chosen point. I.E. choose where the part needs to be stiffest/strongest. I want to change it so that I can choose multiple points where thickness is increased. My theory is that I should compare the distances and pick the value thats smallest as thats the point thats closest. Maybe one of you pro’s have a better way of doing this.

Lattice from surface 3.gh (14.2 KB)
Lattice from surface 4.gh (30.4 KB)

1 Like

Could you internalize your data?

1 Like

Cheeky screenshot of it working with 1 point and 1 surface. I can move the point which moves the location of the thicker lattices.

1 Like

Edited now, sorry still super new to GH

1 Like

Well here are the rough capsule names from that guys definition.
Sorry for the terrible mouse writing lol. I am terrible at that.


Give me a minute to see if I can apply this to your alg.
I don’t have a few of the plugins so I will only be able to do so much.

Hmm, well after looking at your alg I still can’t quite understand what you are looking for.
Here is a replica of the above file.
Sort.gh (7.3 KB)

I believe you can get there by replacing the Distance component with Pull Point component: if you set Pull Point to Closest Only (it’s the default state) it will just calculate the distance between any point in your list and the one closest point in the Pulling Geometry input

the thing is, to be able to controll the “falloff” of the thickness of your structure, I won’t use anymore the Bounds of the Distances, but I would supply an interval with sliders, and use the Clipped output of Remap:


Lattice from surface 4_Re.gh (34.2 KB)

this will work like the following:

whatever is closer than A to one of your point → will have size A’
whatever is in the distance range [A, B] to one of your points → will have linear interpolated size in the range [A’, B’ ]
whatever is farther than B from one of your points → will have size B’

of course you can add as many attractor points as you want: Pull Point (Closest Only) will take care of that

you can also get a non-linear interpolation, but that would require an additional remap and a graph mapper (in order to not have to change the domain of the Graph each time you change your values) unless you are willing to use a plugin like Riched Graph Mapper -which I advocate for- which brings parametric domains to your graphs

I wrote a definition for a multi-point driven strut thickness lattice in Dendro a while back that might help:

1 Like