Hello friend. I need to calculate distance between parallel line(Green- Blue and Green-Red), I use this script, but I think this script dont calculate vertical distance, I need to get minimum or vertical distance, How can I do that?
The Geometry.DistanceTo node should work.
If you need to draw the line showing where the distance was taken you can use Geometry.ClosestPointTo to get the point on curve B which is closest to curve A, and then another Geometry.ClosestPointTo to show the point on curve A to the point you just found. Lastly draw a line between the two points - that should be the distance’s location (or rather one of them).
1 Like