Measuring diameters of trees

   999   5   0
User Avatar
Member
22 posts
Joined: 1月 2023
Offline
Hi, I wanted to know if there is a tool to measure the diameters in cm of the trunk and branches of the trees I am modelling in 3D.

Thanks
User Avatar
Member
4486 posts
Joined: 2月 2012
Offline
Hi,

There is no built-in tool that I know of but you can do it in many ways such as fitting a best fit line per branch using a method such as PCA or SVD, project all the points to the plane with this normal (largest eigenvector), compute minimum circle on this geometry and then take the radius of that circle to compute the diameter:

https://www.sidefx.com/forum/topic/31459/?page=1#post-146137 [www.sidefx.com]

https://www.orbolt.com/asset/animatrix::minCircle::1.00

You most likely have to edit this HDA to get it working in the latest version of Houdini as there has been so many breaking changes since then.

Note that using Bound SOP's sphere option won't do the same, even if your geometry is flat.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
2034 posts
Joined: 9月 2015
Offline
"Hi, I wanted to know if there is a tool to measure the diameters in cm of the trunk and branches of the trees I am modelling in 3D.

Thanks "

As animatrix was saying, there's many ways of doing this.

And the 'best' way of doing it depends on your work flow approach to how you want to model your trunks and branches.
If you take a bit of time and consider how you are modelling them now; If it's other than an ad hoc way at the moment,
you might want to consider what are the underlying common 'actions' you are using, and based on that make your own tool that will work in conjunction with your approach.

You may want to consider how to structure your building of trees and trunks in a way that could transfer to modelling other things for other projects in the future; thereby warranting spending the time building your own measuring tool as it could be used for other projects as well.

Of course if this is just a unique one time project, maybe building a tool is not worth your time at the moment to do, but for what you are asking it won't be that much involved.

I 'model' for 3D printing and I have to occassionaly check parts of the models I create in order to ensure no section of the model goes under a minimum print size. When I made my tool for measuring I rethought how I built my models and incorporated some methods that made it easy to make a tool that would be able to measure for my needs.

If you post a hip file with a very simplified example of a trunk/branch, someone or myself could offer suggestions for your context.
Edited by BabaJ - 2023年2月23日 08:53:27
User Avatar
Member
22 posts
Joined: 1月 2023
Offline
animatrix_
Hi,

There is no built-in tool that I know of but you can do it in many ways such as fitting a best fit line per branch using a method such as PCA or SVD, project all the points to the plane with this normal (largest eigenvector), compute minimum circle on this geometry and then take the radius of that circle to compute the diameter:

https://www.sidefx.com/forum/topic/31459/?page=1#post-146137 [www.sidefx.com]

https://www.orbolt.com/asset/animatrix::minCircle::1.00

You most likely have to edit this HDA to get it working in the latest version of Houdini as there has been so many breaking changes since then.

Note that using Bound SOP's sphere option won't do the same, even if your geometry is flat.


Ok, thanks for the suggestion.
I'm new to Houdini and I'm just starting to understand how it works. I would like to know how to edit the HDA of the minimum circle tool to update it to the latest versions.

Thank you.
User Avatar
Member
4486 posts
Joined: 2月 2012
Offline
roedbo
animatrix_
Hi,

There is no built-in tool that I know of but you can do it in many ways such as fitting a best fit line per branch using a method such as PCA or SVD, project all the points to the plane with this normal (largest eigenvector), compute minimum circle on this geometry and then take the radius of that circle to compute the diameter:

https://www.sidefx.com/forum/topic/31459/?page=1#post-146137 [www.sidefx.com]

https://www.orbolt.com/asset/animatrix::minCircle::1.00

You most likely have to edit this HDA to get it working in the latest version of Houdini as there has been so many breaking changes since then.

Note that using Bound SOP's sphere option won't do the same, even if your geometry is flat.


Ok, thanks for the suggestion.
I'm new to Houdini and I'm just starting to understand how it works. I would like to know how to edit the HDA of the minimum circle tool to update it to the latest versions.

Thank you.

It depends on the error. But if you want to edit the HDA, just right click on a node instance and click Allow Editing of Contents.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
7726 posts
Joined: 9月 2011
Offline
BabaJ
As animatrix was saying, there's many ways of doing this.

Generate a 3d print and get out the calipers
  • Quick Links