interp_data_to_unif
Synopsis
use coordinates from a uniform probe mesh as sample points to interpolate data.
Input Port
in_field
|
Mesh + Node_Data
|
in_probe
|
Uniform Mesh
|
ui_parent
|
user interface parent object
|
Parameters
interpolate components
|
UIoptionBoxLabel
|
data components to interpolate
|
Output Port
out_fld
|
Uniform_Mesh + Node_Data
|
out_obj
|
output renderable object
|
Description
interp_data uses the coordinates specified in an uniform input mesh (in_probe) as a set of sample points for a uniform field. It takes each set of coordinates in the mesh (the sample points), locates these same coordinates in the input field, then calculates what the interpolated data value of the selected component would be at that exact location based on the values of the same component in the adjacent nodes.
Input
in_field
The input is any mesh type with Node_Data.
in_probe
A uniform mesh whose coordinates represent the sample points.
ui_parent
A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)
ui_radiobox
Parameters
interpolate components
UIoptionBoxLabel. A set of option buttons to pick which data components of the input field to interpolate. The default is the first (0th) component. If node data labels are present, they are displayed.
Output Port
out_fld
The output is a field that is a reference to the merge of the input probe's in_probe mesh, and a new Node_Data object with values consisting of the interpolated component values.
out_obj
This is a renderable version of the output field.
Algorithm
"faster" - For each probe point identify the first cell from from the 'in' field that passes a simple bounding box test. Then loop over the nodes of the cell and do a distance test to determine which node value to use as the value of the output point.
"better quality" - Use the same algorithm as interp_data and DVinterp_data.
File
v/modules.v
See also related modules