kmammou / v-hacd

Automatically exported from code.google.com/p/v-hacd
BSD 3-Clause "New" or "Revised" License
1.42k stars 267 forks source link

Decomposing object with holes #71

Open Phantomb opened 5 years ago

Phantomb commented 5 years ago

This issue is mostly related to #59. I'm trying to decompose a relatively simple rectangular mesh with two holes as follows: image

The algorithm does not seem to find a decomposition where the holes are preserved: image The green highlighting indicates the generated mesh. As you see, it does not take into account the holes. This happens for any combination of settings I tried, including increasing the resolution, the number of points per CH, the number of convex hulls and decreasing the minimum volume as per the advice in #59.

Can you shed some insight in how to get more detailed results in such a basic mesh as this?

Further more, the generated mesh does not really fit the original mesh perfectly as can be seen here: image Is that related to the first issue or is that something else?

Phantomb commented 4 years ago

Anyone any ideas? @kmammou

Also looking at the examples you provided here (image below, taken from main readme) it seems to be able to do holes perfectly fine. So what's the problem with my holes, or what settings should I change?

image

MoominGong commented 3 years ago

Helllo Phantomb , Have you solve this problem? Because I also find the problem , which I can not improve the final result, so, please give me some advice if you have certain way that sloves the problem, I pretty thank your advice

Glavin001 commented 2 years ago

Did anyone figure this out?

Maybe use the raycast fill option? https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h

jratcliff63367 commented 2 years ago

The previous version had a bug which would make it fail to properly recurse on some assets. Do you have an example asset I can test against? Please provide it in Wavefront OBJ.