# PointClouds with additional per point attributes

**URL:** <https://discourse.mcneel.com/t/pointclouds-with-additional-per-point-attributes/184144>\
**Category:** Rhino Developer\
**Tags:** windows, cpp\
**Created:** [June 11, 2024, 8:37am UTC](https://discourse.mcneel.com/t/pointclouds-with-additional-per-point-attributes/184144 "2024-06-11T08:37:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![design12](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/design12/32/579861_2.png) [@design12](https://discourse.mcneel.com/u/design12)\
**Post date:** [June 11, 2024, 8:37am UTC](https://discourse.mcneel.com/t/pointclouds-with-additional-per-point-attributes/184144/1 "2024-06-11T08:37:15Z")

</div>

When constructing a PointCloud, adding an additional double (intensity) value per point is possible. But when I have PointClouds with more additional values, what would be the best way of adding them?  
Can they be added as user data to the individual point? Ideally, the values remain correctly associated even after the CointCloud gets edited in Rhino.

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [June 11, 2024, 4:00pm UTC](https://discourse.mcneel.com/t/pointclouds-with-additional-per-point-attributes/184144/2 "2024-06-11T16:00:14Z")

</div>

Hi @design12,

> [@design12](#):
>
> But when I have PointClouds with more additional values, what would be the best way of adding them?

You can add user data to any point cloud object. You’ll need to maintain parallel arrays, as you cannot add user data to points themselves.

> [@design12](#):
>
> he values remain correctly associated even after the CointCloud gets edited in Rhino.

You’ll need to watch for Rhino object replacement events and try to synchronize your user data.

– Dale

---

<div class="post-metadata">

**Author:** ![design12](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/design12/32/579861_2.png) [@design12](https://discourse.mcneel.com/u/design12)\
**Post date:** [June 13, 2024, 2:58pm UTC](https://discourse.mcneel.com/t/pointclouds-with-additional-per-point-attributes/184144/3 "2024-06-13T14:58:09Z")

</div>

Thanks @dale,

I ended up splitting the point cloud on import into smaller clouds of points with the same combination of attributes and attached those to the cloud instead. On export, I then reassemble the point cloud and write the values back to the corresponding points.
