How to measure distances between two points?

   6176   2   0
User Avatar
Member
188 posts
Joined: May 2021
Offline
How can I measure distance between two points in Houdini?



I made the lines in ms paint.
User Avatar
Member
133 posts
Joined: March 2016
Offline
Drop down an attribute wrangle and wire the merg node into the first slot
then use this code:

vector one = point(0,'P', point-number);
vector two = point(0,'P', point-number);

f@distance = distance(one, two);

replace the 'point-number' with the number of the points you want to mesure the distance between.
Then view the results in the geo spreadsheet
Edited by Hatchery - May 10, 2021 12:02:47
Love Houdini
User Avatar
Member
14 posts
Joined: Sept. 2016
Offline
you can also create a line with the add sop, and delete all but this line and use measure node to get it's perimeter.
  • Quick Links