Diamond shape transformation

Hi all,

My given shape is a diamond, which can be transformed as in the attached picture by moving the vertices. I wanted to ask you if there is an overview of methods to cover such a two-dimensional moving line geometry with a three-dimensional one on top. Are there Grasshopper plugins to simulate such a movement or overviews of mechanisms for this kind of shape?

Kind regards,
Clemens!

Artboard 1

This could be one way.


Diamond_rev1.gh (9.7 KB)