csp Posted December 23, 2014 Share Posted December 23, 2014 Is there any way to do something like this inside Houdini? Volumetric Hierarchical Approximate Convex Decomposition - written by K. Mamou https://code.google.com/p/v-hacd/ The only way I can think is in a while loop voronoi fracture your original geometry in two pieces, then in for for loop for each piece get a convex ratio = (vol+= (volume of convex representation / volume of original pice)/num_of_pieces) if ration is 1 then all the pieces are convex otherwise you have to repeat the process for the pieces that are still concave until it gets a ration of 1. But there so many problem with this to implement it using Houdini nodes, for starters you can't have a nested forloops (foreach). 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted December 23, 2014 Share Posted December 23, 2014 I don't know the answer but you can have nested foreach, it will just be slower Quote Link to comment Share on other sites More sharing options...
csp Posted December 23, 2014 Author Share Posted December 23, 2014 I don't know the answer but you can have nested foreach, it will just be slower I get an error whenever I do that. But, I managed to create a forloop with blast and copy SOPs and all this inside a foreach with a condition to stop when the ratio will be 1. But still this is random and not efficient. Quote Link to comment Share on other sites More sharing options...
edward Posted December 24, 2014 Share Posted December 24, 2014 Make sure your stamp variable names on the ForEacg are different 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.