Function t8_forest_element_diam

Function Documentation

double t8_forest_element_diam(t8_forest_t forest, t8_locidx_t ltreeid, const t8_element_t *element)

Compute the diameter of an element if a geometry for this tree is registered in the forest’s cmesh.

This is only an approximation.

Note

For lines the value is exact while for other element types it is only an approximation.

Parameters:
  • forest[in] The forest.

  • ltreeid[in] The forest local id of the tree in which the element is.

  • element[in] The element.

Returns:

The diameter of the element.