AVS field files are a combination of ASCII and binary information. The files contain data in one of three grid formats: uniform, rectilinear, and irregular. See the AVS Developer's Guide for details on the file formats.
The avs_field_reader object creates instances of other objects during a read. For example, it will create visage_data_group, visage_data_set, structured_grid_set, and generic_data objects. If the name of the AVS field file is "filename.fld", then instances of the following classes will be made with the indicated names:
visage_data_group : filename
visage_data_set : filename_gridset
structured_grid_set : filename_gridset_grid
generic_data : filename_gendata
collection new: "set_data" members=([visage_data instances?]); set_data compute_properties!;
visage_geometry new: p1 extent=(1,1,1,32,1,32);
data_operator new: curvilinear_scalardata; curvilinear_scalardata data_source= "curvilinear_gendata" selection=(1);
curvilinear_gridset
displays=(visage_geometry) scalar_data=curvilinear_scalardata;
actor new: a color=(1,1,1) modeller=curvilinear;
/* insert whatever code needed to display an actor. E.g., lights, cameras,
renderers */