Skip to main content
. Author manuscript; available in PMC: 2017 Apr 1.
Published in final edited form as: IEEE Trans Biomed Eng. 2016 Jun 8;64(4):795–806. doi: 10.1109/TBME.2016.2578646

Algorithm 1.

Fine-to-coarse mesh refinement

Initialize set of coarse mesh elements C with tetrahedral
elements from mesh generation
for each cC do
  compute V(c), the volume of c
  compute N(c), the list of nearest neighbors of c
  initialize L(c), the list of tetrahedral elements comprising
  c
end for
for each cC such that V (c) < Vt do
  Merge c with the member of N(c) with the largest
  volume, m
  Remove c from C
  Update N(m) to include N(c):
  Update members of N(c) to include m
  Update members of N(c) to remove c
  Update V (m) = V (c) + V (m)
  Update L(m) = L(m) ∪ L(c)
end for