How to measure distances between two points?
9772
2
0
How can I measure distance between two points in Houdini?

I made the lines in ms paint.
-
- Hatchery
- Member

- 141 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
-
- Kinte3d
- 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.