Function t8_resize_box

Function Documentation

static void t8_resize_box(const int dim, double *box_corners, const double *box_dir, const int face, const t8_locidx_t factor, int *axes)

This is just a helper function that was needed when we change the size of a box for t8_cmesh_set_vertices_2D and _3D.

Parameters:
  • dim[in] The dimension of the box. 2 or 3D.

  • box_corners[inout] The vertices that define the box.

  • box_dir[in] The direction vectors of the edges of the surrounding box.

  • face[in] The box face along which we change the box size.

  • factor[in] The number of quads or hexes along an axis defined by face by which we decrease or increase box.

  • axes[inout] The number of quads or hexes along the axes.