This function interpolates values given on vertices of an hexahedron to a point. The algorithm relies on the ratio of volumes of tetrahedrons defined by the hexa faces and the point, and its behavior is approximately linear.
Warning - there is no verification whether the points are inside the hexahedron. One must check it using other methods.
Parameters : | p : numpy.ndarray \((N,3)\)
hexapoints : numpy.ndarray \((8,3)\)
values : numpy.ndarray \((M,3)\)
|
---|---|
Returns : | interpolated : numpy.ndarray \((N,M)\)
|