{"action":"created","issue":{"url":"https://api.github.com/repos/menpo/menpo3d/issues/11","labels_url":"https://api.github.com/repos/menpo/menpo3d/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/menpo/menpo3d/issues/11/comments","events_url":"https://api.github.com/repos/menpo/menpo3d/issues/11/events","html_url":"https://github.com/menpo/menpo3d/pull/11","id":89284764,"number":11,"title":"barycentric coordinates for landmark transfer","user":{"login":"jabooth","id":1312873,"avatar_url":"https://avatars.githubusercontent.com/u/1312873?v=3","gravatar_id":"","url":"https://api.github.com/users/jabooth","html_url":"https://github.com/jabooth","followers_url":"https://api.github.com/users/jabooth/followers","following_url":"https://api.github.com/users/jabooth/following{/other_user}","gists_url":"https://api.github.com/users/jabooth/gists{/gist_id}","starred_url":"https://api.github.com/users/jabooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabooth/subscriptions","organizations_url":"https://api.github.com/users/jabooth/orgs","repos_url":"https://api.github.com/users/jabooth/repos","events_url":"https://api.github.com/users/jabooth/events{/privacy}","received_events_url":"https://api.github.com/users/jabooth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T12:47:27Z","updated_at":"2015-06-22T12:55:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/menpo/menpo3d/pulls/11","html_url":"https://github.com/menpo/menpo3d/pull/11","diff_url":"https://github.com/menpo/menpo3d/pull/11.diff","patch_url":"https://github.com/menpo/menpo3d/pull/11.patch"},"body":"This PR follows #10.\r\n\r\nAdds three methods onto `TriMesh` that make it easy to do landmark transfer type tasks.\r\n\r\n- `TriMesh.snap_pointcloud_to_surface(pc)`: return a pointcloud which is snapped to lie on the surface of `self`.\r\n- `TriMesh.barycentric_coordinates_of_pointcloud(pc)`: return barycentric coordinates for a snapped version of the provided pointcloud. This is useful for landmark transfer.\r\n-  `TriMesh.project_barycentric_coordinates(bc, index)`: apply the barycentric coordinates to this `TriMesh` returning a `PointCloud`."},"comment":{"url":"https://api.github.com/repos/menpo/menpo3d/issues/comments/114091664","html_url":"https://github.com/menpo/menpo3d/pull/11#issuecomment-114091664","issue_url":"https://api.github.com/repos/menpo/menpo3d/issues/11","id":114091664,"user":{"login":"patricksnape","id":708474,"avatar_url":"https://avatars.githubusercontent.com/u/708474?v=3","gravatar_id":"","url":"https://api.github.com/users/patricksnape","html_url":"https://github.com/patricksnape","followers_url":"https://api.github.com/users/patricksnape/followers","following_url":"https://api.github.com/users/patricksnape/following{/other_user}","gists_url":"https://api.github.com/users/patricksnape/gists{/gist_id}","starred_url":"https://api.github.com/users/patricksnape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patricksnape/subscriptions","organizations_url":"https://api.github.com/users/patricksnape/orgs","repos_url":"https://api.github.com/users/patricksnape/repos","events_url":"https://api.github.com/users/patricksnape/events{/privacy}","received_events_url":"https://api.github.com/users/patricksnape/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T12:55:34Z","updated_at":"2015-06-22T12:55:34Z","body":"What happens if the PointCloud is not snapped to the current one and you ask for barycentric coordinates?"}}