# Add custom dataset associated to points d'un pointcloud

**URL:** https://discourse.vtk.org/t/add-custom-dataset-associated-to-points-dun-pointcloud/7565
**Category:** Support
**Created:** [January 5, 2022, 8:55am UTC](https://discourse.vtk.org/t/add-custom-dataset-associated-to-points-dun-pointcloud/7565 "2022-01-05T08:55:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Julienchz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/julienchz/32/4106_2.png) [@Julienchz](https://discourse.vtk.org/u/Julienchz)
#### Post date: [January 5, 2022, 8:55am UTC](https://discourse.vtk.org/t/add-custom-dataset-associated-to-points-dun-pointcloud/7565/1 "2022-01-05T08:55:51Z")

</div>

Hello,  
I want to associate data with each point of my pointcloud. To do that I know I could use a GetPointData()-\>SetScalars(…) from vtkPolyData but the active scalar of a vtkPointData corresponds to the color of the point and so I will need to deal with it when I would like to access the associated data by name. Is this the best way to go?

Thanks for your help !
