3D grid refinement

Hello everyone,

I need to learn how to make refinement in 3D.
How to make similar thing like in gridrefinement 2d?

Maybe someone has an example?

Best,
Roman.