C++ Manipulation of Block Volume

Hi guys! i have a question,

is possible create a Blocking volume from code and manipulate his vertices?

i need to arbitrary set the position of vertices to make some “automatic” collision shape,

The shape is always box based so i don’t need to add other vertices (however if this is possible would be amazing.)

Now to obtain same result i use the procedural mesh generator to create a mesh give them collision and hide in game but i think is not too much efficient.
Thanks!

nobody has an answer?