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

Added max_err parameter #4

Closed FreakTheMighty closed 4 years ago

FreakTheMighty commented 4 years ago

I don't have much experience with C, or with particular algorithm, but this change seems to be working for me and I wanted to share. Not sure if the code can be used directly, or just to convey the DX I'm looking for. I find this very useful as a way to basically say, "decimate as much as you can while maintaining a certain visual quality".

Closes #3

FreakTheMighty commented 4 years ago

Bit too late for this pull request, but just realized I didn't update the docstring. I'll try to open a new pull request. While I'm there, I could add docs for the features argument. I'm assuming features is meant for passing in something like UVs. Is that correct?

jannessm commented 4 years ago

I have already done this (see #5)