Splitmesh in 3D

In 3D, is there a similar command as 2D splitmesh() or trunc() which can locally split a mesh as shown in following figures? More generally, can we locally refine a mesh in FreeFem (without changing the elements far away) ?

I have found that


could do the job.