Template Function bats::Freudenthal(size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t)

Function Documentation

template<typename CpxT>
CpxT bats::Freudenthal(size_t n1, size_t n2, size_t n3, size_t i0, size_t i1, size_t j0, size_t j1, size_t k0, size_t k1)

Subset of Freudenthal triangulation of 3-dimensional grid on n1 x n2 x n3 vertices

The grid is indexed in row-major order. The index for vertex (i,j,k) is k + n2 * (j + n1 * i)

This function is useful for constructing zigzags through a grid

Parameters
  • n1 – grid size in 1st index

  • n2 – grid size in 2nd index

  • n3 – grid size in 3rd index

  • i0 – start of first index

  • i1 – end of first index

  • j0 – start of second index

  • j1 – end of second index

  • k0 – start of third index

  • k1 – end of third index