This module combines the Coordinates given as (x,y[,z]) and the dimensions of the field to calculate the index of the point in the data array.
Inputs
Name Type Description in_fld Mesh field that defines the dimensions
Parameters
ReadTecplotParams
Name Type Description UI Control x_index int x_coordinate of Point. Slider y_index int y_coordinate of Point. Slider z_index int z_coordinate of Point. Slider dims[] int[] dimensions of the field (none) Output Ports
Name Type Description out int Index of the point in 3D
The module calculates the array index of a point in 2D/3D space. This index can be used to access the data values of the particular point. The data of each point is stored as NodeData in a linear array of values. The CombineCoordinateIndex module generates the index for a point using the dimensions of the field the point is part of and the points coordinates. The user_macro provides a simple user interface that allows the selection of the point in the field using sliders.
in_fld
An AVS field structure. The only part of this structure which is used is the dims[] entry. This defines the dimensions of the field in which the point is located to linearize the coordinates.
x_index
x-Coordinate of the point.
y_index
y-Coordinate of the point.
z_index
z-Coordinate of the point. (3D)
out
The linearized index for the point in the 2D/3D field
The module calculates the array index of a point in a field. This can be used if one wants to access the data value of the point (32,24,45) in a 64x32x50 data volume. This module calulates from the coordinates (32,24,45) and the dimensions array {64,32,50} the linar index 93728. This linear index is the index of the data values for the given point in the NodeData-arrays.
iac_proj/combidx/combidx.v defines the library
iac_proj/combidx/cidxmods.v module definition
iac_proj/combidx/cidxmacs.v macro definition
Tobias Schiebeck, International AVS Centre
International AVS Centre Manchester Visualization Centre Kilburn Building University of Manchester Oxford Road Manchester United Kingdom M13 9PL