There isn't a direct way to do that in Apex. There may possibly be an indirect way, but can I ask what the ultimate aim is with this mesh? It looks like it would be very suited to a hex mesh. Why are you surface meshing the faces, and what is the purpose of the beam elements in this model?