hexaInterpolation

pyvsim.Utils.hexaInterpolation(p, hexapoints, values)[source]

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)\)

List of points to be interpolated

hexapoints : numpy.ndarray \((8,3)\)

List of points defining the hexahedron

values : numpy.ndarray \((M,3)\)

List of values at the vertices of the hexahedron

Returns :

interpolated : numpy.ndarray \((N,M)\)

Values interpolated at points p

This Page