Function t8_dtet_root_face_to_face

Function Documentation

int t8_dtet_root_face_to_face(t8_dtet_t *tet, int root_face)

Given a tetrahedron and a face of the root tetrahedron.

If the tetrahedron lies on the tree boundary, return the corresponding face number of the tetrahedron. If not the return value is arbitrary.

Note

For boundary tetrahedra, this function is the inverse of t8_dtet_tree_face.

Parameters:
  • tet[in] The tetrahedron.

  • root_face[in] The index of a face of the root tetrahedron.

Returns:

The index of the face of tet that is a subface of root_face, if tet is on the tree boundary. Any arbitrary integer if tet is not at a tree boundary.