Jump to content
anicg

exact measures of a primitive (?meters by ? meters)

Recommended Posts

I used the measure node by how can I find out the very precise measures in meters of the primitive (.. meters by .. meters), say for primitive 13 and 11.

measure.JPG

Share this post


Link to post
Share on other sites

For a square it's quite simple. Measure the perimeter and divide it by the number of edges (4) to get the length of each edge. Or measure the area and take the root of that.

It's not as simple for a rectangle, there you could instead use Convert Line SOP. It will convert the edges to a line and give you the length in "restlength". 

Share this post


Link to post
Share on other sites

Thanks. One final step: how to make the size of a box match the measured x,y,z of a bound, not copy pasting values, but linked?

And position. So the idea is to create a box that perfectly matches the size and position of a bound node.

box size from measured bound.JPG

Edited by anicg

Share this post


Link to post
Share on other sites

I'm not sure if you need the length for anything else, but if you want to match the bounds of something else, maybe you can just use a matchsize node

I've attached a very simple example of this

match_size.hip

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

×