hemesh is a 3D library for Processing for the creation and advanced manipulation of meshes by Frederik Vanhoutte.
here is a short test to explore some of the basic features of the library.
the branching structure is based on a simple random sedimentation ad searches for the closest point between the existing nodes of the frame.
you can download the code here.