hampuseh Posted February 11, 2019 Share Posted February 11, 2019 (edited) Greetings! I am currently scattering points on a area that I then copy objects to. In this case the area is the trunk of a tree and the objects copied to the points are bark pieces. My question is, is there a way for Houdini to measure the Trunk area and then measure the bark pieces to then count how many bark pieces are needed to cover the whole trunk? At least a rough estimate would be wonderful as a start for the points scattered. I am using pscale for the bark pieces so if there is a way to count that in. Edited February 11, 2019 by hampuseh Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 11, 2019 Share Posted February 11, 2019 Well for the scatter node, the density scale is measured per m^2, so if you use a measure SOP to measure the area (it will be set to perimeter by default) you can then use an attribute promote SOP to promote the area from primitive to detail, using the "sum" method. you now should have the total surface area as a detail attribute. Then you can fetch that attribute, and divide it by the size of your bark pieces, times some kind of smudge factor and put that as the density in you scatter node. That should give you a reasonable filling in 1 1 Quote Link to comment Share on other sites More sharing options...
hampuseh Posted February 11, 2019 Author Share Posted February 11, 2019 Thank you for your reply. I tried your method and it does what it is supposed to. Thanks a lot sir! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.