geometry-central icon indicating copy to clipboard operation
geometry-central copied to clipboard

collapse: add fixup callback restore halfedge data

Open lfyMeta opened this issue 3 years ago • 0 comments

Fixes #134

In collapseEdgeTriangular, only whole degenerate edges are removed, so we can maintain the implicit sibling property. However, this results in losing at least one halfedge that should remain in the neighborhood after collapse. The lost halfedge is papered over with one of the halfedges from another edge, but this is incorrect if we want to maintain invariants on per-halfedge or per-corner data, such as UV coordinates.

This commit provides a callback, fixup, to collapseEdgeTriangular so that the user can restore the lost data

lfyMeta avatar Nov 28 '22 21:11 lfyMeta