# Geometry Nodes - Measuring distance from any given point to the nearest point on the opposite side of the mesh

Here's the scenario so you know where I'm headed:

I have a single, remeshed model of a tree trunk. Everything is connected and merged together. No leaves. The mesh is obviously tapering - being much thicker at the trunk and branching into thinner and thinner geometry, as trees do.

What I want to achieve is simple in theory: I want to scatter a bunch of triangles on this mesh and have the scale of each triangle be based on the relative thickness of the tree at that specific point. Bigger triangles at the trunk, and smaller triangles on the twigs.

How do I achieve this?

I'm thinking that if I could sample the closest face at any given point and then measure the distance from that point to the closest point on the opposite side of the mesh, it would give me a float value I could use to control the scale. And that's as much as I can understand on my own. I don't know how to achieve it, or if it would even work.

Any suggestions would be lovely!

• Hello and welcome to Blender.SE! How did you create the trunk? Is that a previously modeled mesh, or was that also created with Geometry Nodes? May 10, 2023 at 18:53
• Hey, thanks a lot. The trunk was created using curves to mesh, so I technically have that data as well. It would have to be passed from one GN-Modifier to this one, however, as I have a few other modifiers in between. Not entirely sure how to do that. May 10, 2023 at 19:24
• Somewhat related : blender.stackexchange.com/a/241810/35559 May 10, 2023 at 22:14
• @RobinBetts That was the solution! Thank you so much! May 11, 2023 at 8:36