payload: {"action":"created","comment":{"url":"https://api.github.com/repos/PDAL/PDAL/pulls/comments/321283880","pull_request_review_id":284285540,"id":321283880,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTI4Mzg4MA==","diff_hunk":"@@ -0,0 +1,37 @@\n+.. _filters.firstInVoxel:\n+\n+filters.firstInVoxel\n+===============================================================================\n+\n+The **firstInVoxel filter** is a voxel-based sampling filter.\n+The input point\n+cloud is divided into 3D voxels at the given cell size. For each populated\n+voxel, the first point entering in the voxel is accepted and voxel is marked as populated. \n+All other points entering in the same voxel are ignored/skipped.\n+\n+Example\n+-------\n+\n+.. code-block:: json\n+\n+  [\n+      \"input.las\",\n+      {\n+          \"type\":\"filters.firstInVoxel\",\n+          \"cell\":1.0\n+      },\n+      \"output.las\"\n+  ]\n+\n+.. seealso::\n+\n+    :ref:`filters.voxelcenternearestneighbor` offers a similar solution,\n+    using\n+    the coordinates of the voxel center as the query point in a 3D nearest neighbor search. \n+    The nearest neighbor is then added to the output point cloud, along with any existing dimensions.\n+\n+Options\n+-------------------------------------------------------------------------------\n+\n+cell\n+  Cell size in the ``X``, ``Y``, and ``Z`` dimension.","path":"doc/stages/filters.first-in-voxel.rst","position":null,"original_position":37,"commit_id":"5490ec1894276beab8bbb84b21404833cbbaefa3","original_commit_id":"5dd3f70558bc9aef30ea72fcedbb1563e95f95c4","user":{"login":"pravinshinde825","id":38933204,"node_id":"MDQ6VXNlcjM4OTMzMjA0","avatar_url":"https://avatars0.githubusercontent.com/u/38933204?v=4","gravatar_id":"","url":"https://api.github.com/users/pravinshinde825","html_url":"https://github.com/pravinshinde825","followers_url":"https://api.github.com/users/pravinshinde825/followers","following_url":"https://api.github.com/users/pravinshinde825/following{/other_user}","gists_url":"https://api.github.com/users/pravinshinde825/gists{/gist_id}","starred_url":"https://api.github.com/users/pravinshinde825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravinshinde825/subscriptions","organizations_url":"https://api.github.com/users/pravinshinde825/orgs","repos_url":"https://api.github.com/users/pravinshinde825/repos","events_url":"https://api.github.com/users/pravinshinde825/events{/privacy}","received_events_url":"https://api.github.com/users/pravinshinde825/received_events","type":"User","site_admin":false},"body":"Added link to the doc.","created_at":"2019-09-05T14:03:30Z","updated_at":"2019-09-05T14:03:30Z","html_url":"https://github.com/PDAL/PDAL/pull/2699#discussion_r321283880","pull_request_url":"https://api.github.com/repos/PDAL/PDAL/pulls/2699","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/comments/321283880"},"html":{"href":"https://github.com/PDAL/PDAL/pull/2699#discussion_r321283880"},"pull_request":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/2699"}},"in_reply_to_id":321242207},"pull_request":{"url":"https://api.github.com/repos/PDAL/PDAL/pulls/2699","id":311334110,"node_id":"MDExOlB1bGxSZXF1ZXN0MzExMzM0MTEw","html_url":"https://github.com/PDAL/PDAL/pull/2699","diff_url":"https://github.com/PDAL/PDAL/pull/2699.diff","patch_url":"https://github.com/PDAL/PDAL/pull/2699.patch","issue_url":"https://api.github.com/repos/PDAL/PDAL/issues/2699","number":2699,"state":"open","locked":false,"title":"Feature/first-in-voxel filter","user":{"login":"pravinshinde825","id":38933204,"node_id":"MDQ6VXNlcjM4OTMzMjA0","avatar_url":"https://avatars0.githubusercontent.com/u/38933204?v=4","gravatar_id":"","url":"https://api.github.com/users/pravinshinde825","html_url":"https://github.com/pravinshinde825","followers_url":"https://api.github.com/users/pravinshinde825/followers","following_url":"https://api.github.com/users/pravinshinde825/following{/other_user}","gists_url":"https://api.github.com/users/pravinshinde825/gists{/gist_id}","starred_url":"https://api.github.com/users/pravinshinde825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravinshinde825/subscriptions","organizations_url":"https://api.github.com/users/pravinshinde825/orgs","repos_url":"https://api.github.com/users/pravinshinde825/repos","events_url":"https://api.github.com/users/pravinshinde825/events{/privacy}","received_events_url":"https://api.github.com/users/pravinshinde825/received_events","type":"User","site_admin":false},"body":"- Added `first-in-voxel filter`.\r\n      - This filter will do a pointcloud downsizing based on voxel-grid. \r\n      - One of the limitation to the `voxelcenternearestneibour` filter is it cannot run in streamable mode. To overcome the limitation, I wrote first-in-voxel filter. This filter will only accept the first point entering in the voxel and mark the voxel as populated, After that any point entering in the same voxel will be ignored/skipped.","created_at":"2019-08-27T11:20:48Z","updated_at":"2019-09-05T14:03:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dff1bacd323eb018f2d10b692fbedfdca4c1d81f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PDAL/PDAL/pulls/2699/commits","review_comments_url":"https://api.github.com/repos/PDAL/PDAL/pulls/2699/comments","review_comment_url":"https://api.github.com/repos/PDAL/PDAL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PDAL/PDAL/issues/2699/comments","statuses_url":"https://api.github.com/repos/PDAL/PDAL/statuses/5490ec1894276beab8bbb84b21404833cbbaefa3","head":{"label":"helix-re:feature/first-in-voxel-filter","ref":"feature/first-in-voxel-filter","sha":"5490ec1894276beab8bbb84b21404833cbbaefa3","user":{"login":"helix-re","id":36710890,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzEwODkw","avatar_url":"https://avatars2.githubusercontent.com/u/36710890?v=4","gravatar_id":"","url":"https://api.github.com/users/helix-re","html_url":"https://github.com/helix-re","followers_url":"https://api.github.com/users/helix-re/followers","following_url":"https://api.github.com/users/helix-re/following{/other_user}","gists_url":"https://api.github.com/users/helix-re/gists{/gist_id}","starred_url":"https://api.github.com/users/helix-re/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helix-re/subscriptions","organizations_url":"https://api.github.com/users/helix-re/orgs","repos_url":"https://api.github.com/users/helix-re/repos","events_url":"https://api.github.com/users/helix-re/events{/privacy}","received_events_url":"https://api.github.com/users/helix-re/received_events","type":"Organization","site_admin":false},"repo":{"id":178160682,"node_id":"MDEwOlJlcG9zaXRvcnkxNzgxNjA2ODI=","name":"PDAL","full_name":"helix-re/PDAL","private":false,"owner":{"login":"helix-re","id":36710890,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzEwODkw","avatar_url":"https://avatars2.githubusercontent.com/u/36710890?v=4","gravatar_id":"","url":"https://api.github.com/users/helix-re","html_url":"https://github.com/helix-re","followers_url":"https://api.github.com/users/helix-re/followers","following_url":"https://api.github.com/users/helix-re/following{/other_user}","gists_url":"https://api.github.com/users/helix-re/gists{/gist_id}","starred_url":"https://api.github.com/users/helix-re/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helix-re/subscriptions","organizations_url":"https://api.github.com/users/helix-re/orgs","repos_url":"https://api.github.com/users/helix-re/repos","events_url":"https://api.github.com/users/helix-re/events{/privacy}","received_events_url":"https://api.github.com/users/helix-re/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/helix-re/PDAL","description":"PDAL is Point Data Abstraction Library. GDAL for point cloud data.","fork":true,"url":"https://api.github.com/repos/helix-re/PDAL","forks_url":"https://api.github.com/repos/helix-re/PDAL/forks","keys_url":"https://api.github.com/repos/helix-re/PDAL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helix-re/PDAL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helix-re/PDAL/teams","hooks_url":"https://api.github.com/repos/helix-re/PDAL/hooks","issue_events_url":"https://api.github.com/repos/helix-re/PDAL/issues/events{/number}","events_url":"https://api.github.com/repos/helix-re/PDAL/events","assignees_url":"https://api.github.com/repos/helix-re/PDAL/assignees{/user}","branches_url":"https://api.github.com/repos/helix-re/PDAL/branches{/branch}","tags_url":"https://api.github.com/repos/helix-re/PDAL/tags","blobs_url":"https://api.github.com/repos/helix-re/PDAL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helix-re/PDAL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helix-re/PDAL/git/refs{/sha}","trees_url":"https://api.github.com/repos/helix-re/PDAL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helix-re/PDAL/statuses/{sha}","languages_url":"https://api.github.com/repos/helix-re/PDAL/languages","stargazers_url":"https://api.github.com/repos/helix-re/PDAL/stargazers","contributors_url":"https://api.github.com/repos/helix-re/PDAL/contributors","subscribers_url":"https://api.github.com/repos/helix-re/PDAL/subscribers","subscription_url":"https://api.github.com/repos/helix-re/PDAL/subscription","commits_url":"https://api.github.com/repos/helix-re/PDAL/commits{/sha}","git_commits_url":"https://api.github.com/repos/helix-re/PDAL/git/commits{/sha}","comments_url":"https://api.github.com/repos/helix-re/PDAL/comments{/number}","issue_comment_url":"https://api.github.com/repos/helix-re/PDAL/issues/comments{/number}","contents_url":"https://api.github.com/repos/helix-re/PDAL/contents/{+path}","compare_url":"https://api.github.com/repos/helix-re/PDAL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helix-re/PDAL/merges","archive_url":"https://api.github.com/repos/helix-re/PDAL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helix-re/PDAL/downloads","issues_url":"https://api.github.com/repos/helix-re/PDAL/issues{/number}","pulls_url":"https://api.github.com/repos/helix-re/PDAL/pulls{/number}","milestones_url":"https://api.github.com/repos/helix-re/PDAL/milestones{/number}","notifications_url":"https://api.github.com/repos/helix-re/PDAL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helix-re/PDAL/labels{/name}","releases_url":"https://api.github.com/repos/helix-re/PDAL/releases{/id}","deployments_url":"https://api.github.com/repos/helix-re/PDAL/deployments","created_at":"2019-03-28T08:34:58Z","updated_at":"2019-09-04T06:33:15Z","pushed_at":"2019-09-05T14:01:18Z","git_url":"git://github.com/helix-re/PDAL.git","ssh_url":"git@github.com:helix-re/PDAL.git","clone_url":"https://github.com/helix-re/PDAL.git","svn_url":"https://github.com/helix-re/PDAL","homepage":"https://pdal.io","size":164658,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PDAL:master","ref":"master","sha":"db0918f1976912cba07ddf628886306912b8e640","user":{"login":"PDAL","id":859797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1OTc5Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/859797?v=4","gravatar_id":"","url":"https://api.github.com/users/PDAL","html_url":"https://github.com/PDAL","followers_url":"https://api.github.com/users/PDAL/followers","following_url":"https://api.github.com/users/PDAL/following{/other_user}","gists_url":"https://api.github.com/users/PDAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PDAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDAL/subscriptions","organizations_url":"https://api.github.com/users/PDAL/orgs","repos_url":"https://api.github.com/users/PDAL/repos","events_url":"https://api.github.com/users/PDAL/events{/privacy}","received_events_url":"https://api.github.com/users/PDAL/received_events","type":"Organization","site_admin":false},"repo":{"id":2234863,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM0ODYz","name":"PDAL","full_name":"PDAL/PDAL","private":false,"owner":{"login":"PDAL","id":859797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1OTc5Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/859797?v=4","gravatar_id":"","url":"https://api.github.com/users/PDAL","html_url":"https://github.com/PDAL","followers_url":"https://api.github.com/users/PDAL/followers","following_url":"https://api.github.com/users/PDAL/following{/other_user}","gists_url":"https://api.github.com/users/PDAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PDAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDAL/subscriptions","organizations_url":"https://api.github.com/users/PDAL/orgs","repos_url":"https://api.github.com/users/PDAL/repos","events_url":"https://api.github.com/users/PDAL/events{/privacy}","received_events_url":"https://api.github.com/users/PDAL/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PDAL/PDAL","description":"PDAL is Point Data Abstraction Library. GDAL for point cloud data.","fork":false,"url":"https://api.github.com/repos/PDAL/PDAL","forks_url":"https://api.github.com/repos/PDAL/PDAL/forks","keys_url":"https://api.github.com/repos/PDAL/PDAL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PDAL/PDAL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PDAL/PDAL/teams","hooks_url":"https://api.github.com/repos/PDAL/PDAL/hooks","issue_events_url":"https://api.github.com/repos/PDAL/PDAL/issues/events{/number}","events_url":"https://api.github.com/repos/PDAL/PDAL/events","assignees_url":"https://api.github.com/repos/PDAL/PDAL/assignees{/user}","branches_url":"https://api.github.com/repos/PDAL/PDAL/branches{/branch}","tags_url":"https://api.github.com/repos/PDAL/PDAL/tags","blobs_url":"https://api.github.com/repos/PDAL/PDAL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PDAL/PDAL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PDAL/PDAL/git/refs{/sha}","trees_url":"https://api.github.com/repos/PDAL/PDAL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PDAL/PDAL/statuses/{sha}","languages_url":"https://api.github.com/repos/PDAL/PDAL/languages","stargazers_url":"https://api.github.com/repos/PDAL/PDAL/stargazers","contributors_url":"https://api.github.com/repos/PDAL/PDAL/contributors","subscribers_url":"https://api.github.com/repos/PDAL/PDAL/subscribers","subscription_url":"https://api.github.com/repos/PDAL/PDAL/subscription","commits_url":"https://api.github.com/repos/PDAL/PDAL/commits{/sha}","git_commits_url":"https://api.github.com/repos/PDAL/PDAL/git/commits{/sha}","comments_url":"https://api.github.com/repos/PDAL/PDAL/comments{/number}","issue_comment_url":"https://api.github.com/repos/PDAL/PDAL/issues/comments{/number}","contents_url":"https://api.github.com/repos/PDAL/PDAL/contents/{+path}","compare_url":"https://api.github.com/repos/PDAL/PDAL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PDAL/PDAL/merges","archive_url":"https://api.github.com/repos/PDAL/PDAL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PDAL/PDAL/downloads","issues_url":"https://api.github.com/repos/PDAL/PDAL/issues{/number}","pulls_url":"https://api.github.com/repos/PDAL/PDAL/pulls{/number}","milestones_url":"https://api.github.com/repos/PDAL/PDAL/milestones{/number}","notifications_url":"https://api.github.com/repos/PDAL/PDAL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PDAL/PDAL/labels{/name}","releases_url":"https://api.github.com/repos/PDAL/PDAL/releases{/id}","deployments_url":"https://api.github.com/repos/PDAL/PDAL/deployments","created_at":"2011-08-19T15:57:50Z","updated_at":"2019-09-05T12:11:59Z","pushed_at":"2019-09-05T14:01:20Z","git_url":"git://github.com/PDAL/PDAL.git","ssh_url":"git@github.com:PDAL/PDAL.git","clone_url":"https://github.com/PDAL/PDAL.git","svn_url":"https://github.com/PDAL/PDAL","homepage":"https://pdal.io","size":166147,"stargazers_count":436,"watchers_count":436,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":213,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":105,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":213,"open_issues":105,"watchers":436,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/2699"},"html":{"href":"https://github.com/PDAL/PDAL/pull/2699"},"issue":{"href":"https://api.github.com/repos/PDAL/PDAL/issues/2699"},"comments":{"href":"https://api.github.com/repos/PDAL/PDAL/issues/2699/comments"},"review_comments":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/2699/comments"},"review_comment":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/2699/commits"},"statuses":{"href":"https://api.github.com/repos/PDAL/PDAL/statuses/5490ec1894276beab8bbb84b21404833cbbaefa3"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"pravinshinde825"}}