This example creates a 2-D Voronoi pulmonary capillary mesh over the surface of a 3-D Voronoi alveolar mesh (5 alveoli around a central duct). Regularly distributed points are created on the surface of a unit half-sphere, these points are projected onto the alveolar surface, grouped according to alveolus and projected back onto the sphere surface. This ensures mesh continuity between adjacent alveoli, i.e. a single capillary sheet is shared by two adjacent alveoli. A delaunay triangulation of these points is then formed and from this a Voronoi mesh. The mesh is projected back onto the alveolar surface. An inlet and outlet vessel are also created.

Created by Kelly Burrowes, 01/2003.

Alveolar surface mesh

Delaunay triangulation (green) & Voronoi (white)

Voronoi / capillary mesh

Final capillary mesh 3-D perspective