jannessm / quadric-mesh-simplification

Fast python implementation of the quadric mesh simplification algorithm from http://mgarland.org/files/papers/quadrics.pdf
MIT License
103 stars 10 forks source link

Four faced quad #6

Closed FreakTheMighty closed 4 years ago

FreakTheMighty commented 4 years ago

I don't think this is bug, but I thought I'd pose the question here.

When I decimate a very thin piece of geometry sometimes I find quads, 4 vertices, that have 4 faces instead of 2. The result is a lot of z-fighting in my final application. I've been trying to figure out if this is something I could to clean up as a post process, but can't quite figure out a general way to describe the issue never mind an algorithm for cleaning it up.

Do you think this is something that could be improved in the decimation algorithm? Any other thoughts about how to approach the issue?

image

jannessm commented 4 years ago

This is indeed not part of the implemented algorithm. But for your problem: maybe you can start with one face and remove all overlapping faces. You should easily get a solution for this from google ;).

I will close this issue, since it is no issue of the provided algorithm.