Creating a cube mesh programatically at runtime?

I want to create a cube mesh at runtime by providing 8 vertices. I mean something like this should be possible right? I just couldn’t find anything in the API.

Any help is greatly appreciated.

Check out this Generate Procedural Mesh - C++ Gameplay Programming - Unreal Engine Forums .

Thanks that was already very helpful but I am wondering if we are able to access the vertices of a static mesh?

Let’s say I import to objects that I have modeled in a 3d application and I import them into UE4. Now I want to align the vertices like this


It’s probably very easy if the faces have the same number of vertices but I haven’t found a way to manipulate the vertices of a static mesh.