Molding a mesh programmatically

Im thinking about a feature where you can mold a shape dynamically. How would i go about manipulating a 3D or 2D mesh programmatically?

This package has some examples,

Thanks :smile: