Remove selected part in this example
in this example i can select part of the grid but i didn’t found how i can deselect this part , any suggestions because am a begginner in three.js , thank you

Would be cool to show what and how you do to select a part of the grid.

try the example below MouseRectangle2D

Considering, that this example is written by me, what do you mean with “deselect”?
There is no selection of anything, there is just creating and positioning of rectangular meshes, made with PlaneGeometry().

i mean remove creation of rectanglular meshes

Make them invisible (.visible = false) or dispose them.

i will try this method , and i want to thank you for your example ,they help me thanks again