Closed xuzheng0927 closed 7 years ago
Check the SurfaceMesh API ;)
There's also some discussion about this in the polygon mesh processing textbook.
I found an "is_manifold" function. So how do we "simulate" the collapse? I plan is to associate all vertex v0's half edges with the v1 (the one to be collapsed into) and remove v0, then check whether it is valid. If not I'll create v0 and associate those half edges back. But it seems it is not "simulation".
That's not the right one. Peek around "collapse" (I already said too much ;)
As for the simulate, you'll have to think about it yourself. There is nothing wrong in discussing with colleagues (as fas as you don't look at each other's code)
Solved and will closed the issue.
This is from the assignment description: "Invalid collapses are defined as the ones that produce a non-manifold configuration (or a face fold-over)." For the face fold-over, we can use the threshold provided by the base code (min_cost). What about the "non-manifold configuration"? Any rules (or do we need to deduct the rules ourselves)?