Figure 17. Defining the location of the basement membrane.
The red dashed line indicates the location of the basement membrane, which is defined to pass through the midpoints of the springs connecting neighbouring epithelial and stromal cell centres. The local discrete curvature is calculated for each epithelial and stromal node pair, and the midpoints of the neighbouring springs are taken to form a piecewise linear curve defined by three points. An example is indicated by the three points marked by black circles.