Well, you should see the code (inside HACDDemo.cpp) I used to "fill the hole" in the default torus mesh: this was made with some settings of the HACD parameters.ananas wrote:I've manged to successfully compile and launch HACDdemo, but I am struggling with decomposition of a torus-like mesh. I see that BulletDefaultTorusMesh.off gets decomposed properly for all but one objects in the torus demo, but if I replace it with my torus mesh created in blender with "spin" tool, and exported to the waveform format it doesn't have central hole.
Could you give some hints on how to create a torus mesh that would fit the convex decomposition algorithm requirements?
Once you detect the right parameters, you must replicate them in the "appHACDDemoCmdLineParams.txt" file and save the file before decomposing the mesh.
I'm not sure abut it, but I think that if you simply drag (on Windows) the torus.off file contained in the demo onto the appHACDDemo.exe icon, its central hole will be filled (with the default values of the HACD params in "appHACDDemoCommanLineParams.txt").
So you can use it as a test to see if your changes in the HACD params are actually detected by the program. (*)
(*) Please note that if you're using a unix system, this is more difficult to achieve. Anyway any changing parameter (from the default values of the HACD parameters) in "appHACDDemoCmdLineParams.txt" should be displayed in the console (so you are sure that the program is finding it). I suggest you launch the appHACDDemo.exe from the folder of the model you want to decompose.