convert an AVS/Express field to an AVS UCD (.inp file) and output to a file
Write_UCD first converts an AVS/Express unstructured field into Application Visualization System UCD-format (with ACfld_to_ucd), and then uses ACU_write_ucd to write it to disk in AVS UCD file format (.inp suffix). (ACU_write_ucd is the AVS5 write ucd module.)
The results of the conversion are summarized below.
Field. The input is any unstructured AVS/Express field.
All of the data and semantics present in an AVS/Express field are present in the AVS UCD .inp file, except the following:
The "mid-edge nodes" in second order cells are not written to the file. (Note that Read_UCD does not read mid-edge nodes either.)
Cell_Sets with different Cell_Data components generate an error.
Fields with NULL data. The NULL data values are copied to the output data and the null_flag and null_value objects in the input Data_Array are lost. You need to use set_null to turn them back on should you reread the data as an AVS/Express field.
Fields whose Node_Data and Cell_Data components are not of type float convert to type float.
Also note that all data related to coordinates are first transformed by the Express field's xform transformation matrix (if present) before they are handed to the object that writes the file to disk. This ensures that the data keeps its correct position in space when reread into AVS/Express.
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.)
UIfileSB. Selects the disk file to write. The default search pattern is
$XP_PATH<0>/data/ucd/*.inp.
A UIradioBox to pick the format in which the data should be written to disk. The choices are Binary and ASCII. The default is Binary.
v/modules.v
compat/modules/converts/fld2ucd.c