# How to write an editable "point cloud" application?

**URL:** https://discourse.vtk.org/t/how-to-write-an-editable-point-cloud-application/9434
**Category:** Support
**Created:** [September 22, 2022, 9:41pm UTC](https://discourse.vtk.org/t/how-to-write-an-editable-point-cloud-application/9434 "2022-09-22T21:41:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tomasso](https://discourse.vtk.org/user_avatar/discourse.vtk.org/tomasso/32/5786_2.png) [@Tomasso](https://discourse.vtk.org/u/Tomasso)
#### Post date: [September 22, 2022, 9:41pm UTC](https://discourse.vtk.org/t/how-to-write-an-editable-point-cloud-application/9434/1 "2022-09-22T21:41:59Z")

</div>

I have sonar bathymetry data sets that consist of many (10K +) points (latitude, longitude, depth). I want to write a C++ application to display the data set as a point cloud. The user should have capability to “edit” the cloud, selecting individual or groups of points and erasing or modifying their x/y/z values. Points should be colored according to the data quality associated with it.  
How to implement this? I want to display the cloud as individual points, not polygons. Should I display each point as a VtkVoxel? Which Vtk class would I use to group the voxels into a cloud? Does anyone know of a similar Vtk example that I should look at?  
All suggestions appreciated. Thanks!

---

<div class="post-metadata">

### Author: ![Francois\_Mazen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/francois_mazen/32/3290_2.png) [@Francois\_Mazen](https://discourse.vtk.org/u/Francois_Mazen)
#### Post date: [September 23, 2022, 8:33am UTC](https://discourse.vtk.org/t/how-to-write-an-editable-point-cloud-application/9434/2 "2022-09-23T08:33:54Z")

</div>

Hello @Tomasso

Have you had a chance to look at [LidarView](https://www.paraview.org/lidarview)? This is a ParaView based application (hence using VTK under the hood) to visualize and post-process point clouds from (but not limited to) Lidar sensors.

Otherwise, in VTK world, point clouds are usually `vtkPolyData` where each point is a vertex cell or all points are in a polyvertex cell. You can look at the [vtkConvertToPointCloud](https://vtk.org/doc/nightly/html/classvtkConvertToPointCloud.html) documentation for examples.

Best,  
François
