hjwdzh / QuadriFlow

QuadriFlow: A Scalable and Robust Method for Quadrangulation
http://stanford.edu/~jingweih/papers/quadriflow/
Other
660 stars 76 forks source link

Initial border preservation implementation #39

Closed DarkDefender closed 5 years ago

DarkDefender commented 5 years ago

I've ported over the border edge preservation from Instant Meshes:

Input mesh Old output (without border preservation) New output
1 2 3

However, there are still a few issues that I would need some input on. The mesh now still meshes holes if the resolution is too small:

Input mesh Output low res Output high res
4 5 6

In addition, I'm not sure how I should make the scaling work in the propagate_constraints function (marked as FIXME).

Any help in this matter would be greatly appreciated.

Note that this is built on top of my other pull request so only the most recent commit is relevant for this specific pull request.

hjwdzh commented 5 years ago

This is super helpful. In the initial optimization it will preserve boundary, but maybe destroyed during the flow modification. That is something that needs additional fundamental algorithm design:)