Jump to content
archz2

Measuring distance between two points

Recommended Posts

Hi. I started using Houdini two days back. I come from architecture background. I have used Rhinoceros 3D and Grasshopper extensively in the last two years. So I have some experience in node-based workflow. One thing I cannot find in Houdini is to how to measure distance between two points. 

 

For example, there are two cuboids placed side by side with a little gap between them. I want to measure the distance from any vertex of first cuboid to the vertex of another one. How do I do it?

Share this post


Link to post
Share on other sites

Drop down an attribute wrangle and pipe the first cuboid into the first input and the second cuboid into the second input and type the following into the wrangle:

f@dist = distance(@P, @opinput1_P);

That will give you a distance attribute on each point 

distance_between_points.hiplc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×