Jump to content

Decomposing a concave mesh into a set of convex meshes


csp

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
Link to comment
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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...