ReadHess

Synopsis

Reads a Hess (.n3d) CFD panel method geometry file into an AVS/Express Mesh.


module Read_Hess_File < src_file      = "rd_hess.cxx",
                        out_src_file  = "gen.cxx",
                        out_hdr_file  = "gen.h",
                        cxx_hdr_files = "fld/Xfld.h" > {
    string+IPort2  hess_filename;
    Field+Space3+OPort2  out_fld;
    cxxmethod+req update (
        .hess_filename +read+req+notify,
        .out           +write
    );
};

Description

The Read_Hess_File module allows files in the "Hess" file format to be read into AVS/Express. The Hess file format is used by CFD panel methods. It is also very close to the "PANAIR" format that is used by the North-American Aerospace industry. The module takes the geometry from the Hess file and generates a poly-tristrip that is placed into an Express field. The read_hess user macro enhances the module further by including an user interface and by generating a renderable DataObject. Hess format files typically have a ".n3d" extension.

Inputs

filename

Name of the Tin .N3D file to be read. The parameter is of type string. This is the only input parameter to the Read_Hess_File module.

Outputs

out_fld

The output field containing field data constructed from the data present in the Hess file.

out_obj

A DataObject created from the data present in the Hess file, that is suitable for direct connection to a viewer.

Utility Macros

The low-level Read_Hess_File module is used in the User Macro read_hess. Additionally, the user macro also uses the ReadHessUI UI Macro.

Example

An example application ReadHessEg is provided, which allows a Hess file to be loaded and allows the data to be mirrored around the X,Y and Z axis. Unfortunately no example data files are available for distribution with this module.

Files

iac_proj/rd_hess/hessmods.v contains the V definition of the Read_Hess_File module.

iac_proj/rd_hess/hessmacs.v contains the V definitions of the ReadHessUI User Interface Macro, the read_hess User macro and the ReadHessEg example application.

Other Notes

The low-level ReadHessMods library containing the module Read_Hess_File does not specify a process. By default the express process will be used.

Authors

Brian Selle, Ian Curington, Advanced Visual Systems, Inc.

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

n/a