Function t8_dtri_compute_reference_coords(const t8_dtri_t *, const double *, const size_t, const size_t, double *)
Defined in File t8_dtri_bits.h
Function Documentation
-
void t8_dtri_compute_reference_coords(const t8_dtri_t *element, const double *ref_coords, const size_t num_coords, const size_t skip_coords, double *out_coords)
Convert points in the reference space of a tri element to points in the reference space of the tree (level 0) embedded in \( [0,1]^2 \).
- Parameters:
element – [in] Input triangle.
ref_coords – [in] The reference coordinates in the triangle (num_coords times \( [0,1]^2 \))
num_coords – [in] Number of coordinates to evaluate
skip_coords – [in] Only used for batch computation of prisms. In all other cases 0. Skip coordinates in the ref_coords and out_coords array.
out_coords – [out] An array of num_coords x 2 x double that will be filled with the reference coordinates of the points on the triangle.