Face-to-face linking alignment needs tuning #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Linking (L key) merges two voxels but the face alignment (rotation + translation) is not always precise. The world-space merge approach works but the initial snap needs refinement — faces should dock flush.
Session 23: Linking alignment significantly improved.
In-plane rotation solved. After normal alignment (setFromUnitVectors), solve remaining 1-DOF via 2D cross-covariance:
θ = atan2(h10 - h01, h00 + h11). Tries all cyclic offsets with winding reversal to find best vertex correspondence.Arc-length resampling replaces edge splitting for vertex count matching. Both face boundaries resampled at equal intervals.
Explicit vertex pairing replaces threshold welding. Cyclic offset search with winding reversal finds optimal correspondence, then welds paired vertices.
Needs testing to confirm flush docking. May need further tuning.
Commit:
e9f35bd