TOC PREV NEXT INDEX

Read_Volume

Synopsis

read an AVS volume (.dat file) and output an AVS/Express field

Input Port

ui_parent

user interface parent object

Parameters

Read vol Filename

UIfileSB

pick file to input

Output Port

field

Field_Unif + Dim3 + Space3+Scalar+Byte+Oparam

geom

output renderable object

Description

Read_Volume reads an Application Visualization System volume format file (.dat suffix) and converts it into an AVS/Express Field_Unif.

Input

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

Parameters

Read vol Filename

File browser. Selects the disk file to input and convert. The default search pattern is $XP_PATH<0>/data/volume/*.dat.
The input file is an AVS volume (.dat) format binary file such as the AVS write_volume module produces.

Output Port

out

The output is a new Field_Unif object containing:
Node_Data
nnodes equal to the product of the dims array (X x Y x Z)
nnode_data equals 1 (one Data_Array component)

Data_Array
nvals equals nnodes
veclen equals 1
values array contains the scalar node values
primitive data type OM_TYPE_BYTE

Grid_Unif (portions derived from Grid_Struct)
ndims equal to 3 (from Dim3)
dims array equal to dims[0] = x dim; dims[1] = y dim; dims[2] = z dim
points array equal to: points[0] = 0.0
points[1] = 0.0
points[2] = 0.0
points[3] = (float) x - 1.0
points[4] = (float) y - 1.0
points[5] = (float) z - 1.0

Grid
nspace equals Space3

Example

Not available

File

v/modules.v

See also related modules

Read_Geoms
Read_Image
Read_Geom

TOC PREV NEXT INDEX