Javascript Points Edits

I have searched many pages and I have not found anything, I already have points that form a 3d shape, I just need to fill them in with the method of editing these Points of the Rects, I don’t know if there will be a way.

The way I can think of is to deform the Points of the Rects and place them at each point. but I don’t know how to edit these coordinates.

If possible without libraries, I Request Answers!