Tell which Polygon Mesh/ Point Cloud was being clicked on

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Tell which Polygon Mesh/ Point Cloud was being clicked on

cjlark
I have a visualizer with multiple polygon meshes in it. I want the user to be
able to click on a polygon mesh and then manipulate its position with
keyboard callbacks.

Is there a way to know which polygon mesh (or point cloud) the user has
clicked on?



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Tell which Polygon Mesh/ Point Cloud was being clicked on

DevSH Graphics Programming on Gmail
You'd need a ray/cylinder point cloud intersection test.

As far as I am aware the kd-tree class in pcl has no such functionality
(maybe FLANN has ?)

On 07/05/18 21:44, cjlark wrote:

> I have a visualizer with multiple polygon meshes in it. I want the user to be
> able to click on a polygon mesh and then manipulate its position with
> keyboard callbacks.
>
> Is there a way to know which polygon mesh (or point cloud) the user has
> clicked on?
>
>
>
> --
> Sent from: http://www.pcl-users.org/
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Tell which Polygon Mesh/ Point Cloud was being clicked on

MarkL
The octree data structure has a method for ray tracing (with respect to the
leaf voxels of the octree):

int pcl::octree::OctreePointCloudSearch<>::getIntersectedVoxelIndices
(Eigen::Vector3f origin, Eigen::Vector3f direction, std::vector< int > &
k_indices, int max_voxel_count = 0 )
<http://docs.pointclouds.org/trunk/classpcl_1_1octree_1_1_octree_point_cloud_search.html#af067dc63c7deff49eb6e9e4a41851a78>  



DevSH Graphics Programming on Gmail wrote

> You'd need a ray/cylinder point cloud intersection test.
>
> As far as I am aware the kd-tree class in pcl has no such functionality
> (maybe FLANN has ?)
>
> On 07/05/18 21:44, cjlark wrote:
>> I have a visualizer with multiple polygon meshes in it. I want the user
>> to be
>> able to click on a polygon mesh and then manipulate its position with
>> keyboard callbacks.
>>
>> Is there a way to know which polygon mesh (or point cloud) the user has
>> clicked on?
>>





--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users