# Add or delete some points of PointsCloudSystem

**URL:** <https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359>\
**Category:** Questions\
**Tags:** mesh\
**Created:** [July 21, 2022, 5:59am UTC](https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359 "2022-07-21T05:59:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinDotW](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@KevinDotW](https://forum.babylonjs.com/u/KevinDotW)\
**Post date:** [July 21, 2022, 6:00am UTC](https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359/1 "2022-07-21T06:00:00Z")

</div>

**I had create a PointsCloudSystem, i want to use some new points instead of the old mesh.**

`pointsCloudSystem.mesh.dispose(); pointsCloudSystem.addPoints(...);`  
it is wrong…

`pointsCloudSystem.dispose(); new PointsCloudSystem(...); pointsCloudSystem.addPoints(...);`  
it is good

**i am not sure i should create a new PointsCloudSystem, then use the addPoints method? Can I just use the same PointsCloudSystem Object？**

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [July 21, 2022, 8:10am UTC](https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359/2 "2022-07-21T08:10:35Z")

</div>

Hi @KevinDotW and welcome to the forum

You can call `addPoints` many time and then ball `buildMeshAsync` to get the mesh updated like in this PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#UI95UC)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [July 21, 2022, 8:18am UTC](https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359/3 "2022-07-21T08:18:51Z")

</div>

Hi @KevinDotW welcolme to the community.

PCS has a number of limitations.

There is no method to delete points.

You create the PCS, then add points to the PCS as per available methods, then create the mesh using these points. Once the mesh is created you cannot add points to the mesh. You can add to the pcs and create a new mesh.

---

<div class="post-metadata">

**Author:** ![KevinDotW](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@KevinDotW](https://forum.babylonjs.com/u/KevinDotW)\
**Post date:** [July 21, 2022, 8:41am UTC](https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359/4 "2022-07-21T08:41:16Z")

</div>

thanks! I will have a try

---

<div class="post-metadata">

**Author:** ![KevinDotW](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@KevinDotW](https://forum.babylonjs.com/u/KevinDotW)\
**Post date:** [July 21, 2022, 8:41am UTC](https://forum.babylonjs.com/t/add-or-delete-some-points-of-pointscloudsystem/32359/5 "2022-07-21T08:41:55Z")

</div>

thanks a lot for your help!!
