Not sure if this is exactly what you are looking for, but here you go:
Code example on the wiki: A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums
Thread on the subject: Generate Procedural Mesh - C++ Gameplay Programming - Unreal Engine Forums