Jump to content
csp

Decomposing a concave mesh into a set of convex meshes

Recommended Posts

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/

 

B34fU.png

 

 

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).

  • Like 1

Share this post


Link to post
Share on other sites

I don't know the answer but you can have nested foreach, it will just be slower :)

Share this post


Link to post
Share on other sites

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.

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

×