Template Function grid_element_to_coords
Defined in File t8_vtk_writer_helper.hxx
Function Documentation
-
template<typename grid_t>
void grid_element_to_coords(const grid_t grid, const t8_locidx_t itree, const t8_element_t *element, const int curved_flag, double *coordinates, const int num_node, const t8_element_shape_t shape) Compute the coordinates of the corners of an element in the grid.
If the grid is a forest the input for element is ignored.
- Template Parameters:
grid_t –
- Parameters:
grid – [in] The forest/cmesh to use.
itree – [in] The local id of a tree in grid.
element – [in] An element in the tree with local id itree. If grid is cmesh the input is ignored.
curved_flag – [in] If true, we use quadratic elements to write.
coordinates – [inout] An array with enough space to hold 3*num_node doubles. On output filled with the coordinate of the corners of the element/tree
num_node – [in] The number of nodes to use to describe the element/tree.
shape – [in] The shape of the element/tree.