{"push_id":1111934587,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"8cf2cb09da1f65a05cb8d0fd1d7237254e4c0c51","before":"dc0cefd10481b17b182897fdf3bdc422fe525112","commits":[{"sha":"8cf2cb09da1f65a05cb8d0fd1d7237254e4c0c51","author":{"email":"66d9b5392f261c27c67ad84d213eced52a07efd8@gmail.com","name":"takenu"},"message":"Fix issues in TopologicalMesh::findNearestNeighbor()\n\nWhile the previous commit did compile properly, it did not always find\nthe correct vertex as the closest underlying vertex to the leading upper\nvertex. It turns out that was due to sloppy checks in\nfindNearestNeighbor(), which only compared the current nearest candidate\nto the two neighbors of each polygon, without comparing these neighbors\nto each other. In situations where the neighbor existed in only one\nadjacent polygon (quite common for at-Layer's-edge polygons), the\nclosest neighbor was therefore never considered as a candidate.\n\nThis commit thus improves the candidate selection logic for intra-mesh\nnearest neighbor searches. For the current parameters, the correctness\nof nearest-neighbor searching is confirmed by the distance between the\nupper and lower leading vertices being 2 (i.e. the Layer's thickness)\neverywhere.","distinct":true,"url":"https://api.github.com/repos/takenu/strata/commits/8cf2cb09da1f65a05cb8d0fd1d7237254e4c0c51"}]}