Selecting trimmed surfaces closest to curve

hi, im trying to select trimmed surfaces(or part of a mesh) that close to curve i draw.
im struggle to compare closest centroid points to the index number of the surfaces.


for example in the screenshot, i want the surface with the red point to be selected, as they close to the curve.

hope its clear enought. thanks.

Something like this?
200618_nearest_mesh_face.gh (8.3 KB)

Problem could be that your mesh faces have different sizes. Different approach could be to find the closest mesh edges to the curve and and then get the adjacent mesh faces since it looks like your line lays directly on a string of mesh edges.

yes thats great.what i looked for… thanks!