I have been stuck on what i thought would be an easy problem for a few days. As can be seen on the picture, my goal is to measure the distance between the points on the layer n and the surface n+1 iteratively until i reach my last surface.
What I know already is the number of points per layer and I also get all my surfaces from a tween, so my idea was to âdrawâ a vector that would have for origin the point and the direction comes from the normal of the point with respect to surface n and basically extend the vector until it reaches n+1 and measure the distance.
Is there a way to do that for all my points using GH tools?
Thanks a lot, I feel like a gh file would be useless as this is a reasoning issue but please let me know if itâs needed>
The simple version is to use a grasshopper component âSurface Closest Pointâ, which automatically find the closest point on a usrface to a given point and outputs the distance. However, Iâm not really sure what you mean by ânâ and ân+1â in terms of layers? Can you post a file or more screen shots giving us 3d context? I know that you will need to get the data tree set up right to get the correct distance, but I have no idea how you have these separated or what you are measuring to.
You want the distance between EVERY point on a layer and the layer above? To what end? Are there even the same number of points on each layer? Youâve also uploaded no code so not sure how youâre expecting anyone to help.
Yes I want to understand which logic need to be applied to achieve this result of measuring the distance between the points of one layer and either the layer above or below.
There is a constant number of points per layer yes, I will upload the code with this message.
I didnât upload it initially because more than a readymade solution I wanted to understand the logic that needs to be applied.
This is exactly what I have been doing but I want to move to more complex geometries on which points arent aligned anymore. Unless there is a way to align points when I divide curve I have to find another way to measure the distance. Thanks
The lowest surface in the Brep | Brep intersection does not fully intersect your source geometry so the curve is cut off at one end (lower left part of the image above).
I donât know what your ultimate goal is for this, so this may not suit your needs.