Input:ββ An D-EVM and the number of dimensions. |
Output:β The number of internal contacts, perpendicular to the XA-axis, between |
βββββthe hypervoxels that originally composed p. |
Procedureβ InternalContacts(EVM p, int n) |
ββββββEVM hvl// Current couplet of p. |
ββββββEVM , // Previous and next sections about hvl. |
ββββββEVM // The result of intersecting the projections of Si and Sj. |
ββββββint c1// Common XA-coordinate of couplet hvl. |
ββββββint c2// Common XA-coordinate of couplet next to hvl. |
ββββββint nCoords// Number of integer coordinates between c1 and c2. |
ββββββint L = 0// Number of internal contacts ((n-1)D adjacencies). |
ββββββSi = InitEVM( ) |
ββββββc1 = GetCoordNextHvl(p) |
ββββββhvl = ReadHvl(p) |
ββββββwhile (Not(EndEVM(p))) |
βββββSj = GetSection(Si, hvl) |
βββββc2 = GetCoordNextHvl(p) |
βββββnCoords = |
βββββL = L + nCoords * Content(Sj, n 1) |
βββββSint = BooleanOperation(, , Intersection, n 1) |
βββββL = L + Content(, n 1) |
βββββSi = Sj |
βββββc1 = c2 |
βββββhvl = ReadHvl(p)// Read next couplet. |
βββββend-of-while |
βββββreturn L |
end-of-procedure |