{"action":"closed","issue":{"url":"https://api.github.com/repos/wo80/Triangle/issues/4","labels_url":"https://api.github.com/repos/wo80/Triangle/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/wo80/Triangle/issues/4/comments","events_url":"https://api.github.com/repos/wo80/Triangle/issues/4/events","html_url":"https://github.com/wo80/Triangle/issues/4","id":108537590,"number":4,"title":"Vertex attribute interpolation ","user":{"login":"wo80","id":1840402,"avatar_url":"https://avatars.githubusercontent.com/u/1840402?v=3","gravatar_id":"","url":"https://api.github.com/users/wo80","html_url":"https://github.com/wo80","followers_url":"https://api.github.com/users/wo80/followers","following_url":"https://api.github.com/users/wo80/following{/other_user}","gists_url":"https://api.github.com/users/wo80/gists{/gist_id}","starred_url":"https://api.github.com/users/wo80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wo80/subscriptions","organizations_url":"https://api.github.com/users/wo80/orgs","repos_url":"https://api.github.com/users/wo80/repos","events_url":"https://api.github.com/users/wo80/events{/privacy}","received_events_url":"https://api.github.com/users/wo80/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T13:53:49Z","updated_at":"2015-12-22T14:52:49Z","closed_at":"2015-12-22T14:52:49Z","body":"Attributes of vertices inserted during refinement might have unexpected values.\r\n\r\nWhen fixing a bad triangle, we get barycentric coordinates for the new vertex with respect to the bad triangle. But the vertex might lie outside the bad triangle, so this might result in unwanted interpolation values.\r\n\r\nExample:\r\n```\r\n5 2 1 1\r\n1  0.0 0.0  0.0  1\r\n2  4.0 0.0  0.0  1\r\n3  5.0 2.0  2.0  1\r\n4  4.0 4.0  0.0  1\r\n5  0.0 4.0  0.0  1\r\n5 1\r\n1 1 2 1\r\n2 2 3 1\r\n3 3 4 1\r\n4 4 5 1\r\n5 5 1 1\r\n0\r\n```\r\nCommand: `triangle.exe -pq30DC example.poly`\r\n\r\nThe bad tiangle is to the right of the box (corner vertices (2, 3, 4)). The new vertex will clearly lie inside the box, so the z attribute should be 0.0, while the value computed in `splittriangle` method is -3.0."}}