spacer spacer spacer
spacer spacer spacer
spacer
NASA Logo - Jet Propulsion Laboratory    + View the NASA Portal
spacer
JPL Home Earth Solar System Stars & Galaxies Technology
ParVox Parallel Volume Rendering System
ParVox Home ../Images & Animations ParVox Document Download Source PAT Home Section 387 Division 38
spacer
spacer spacer spacer
spacer

vlmget_ugrid


NAME

    vlmget_ugrid  - Reads the ugrid cell and vertex tables from a ParVox unstructured grid definition file.

SYNOPSIS

    #include <vlmeta.h>
    int vlmget_ugrid(int ncid, vlmeta_ugrid *ugdata, int dtype);

DESCRIPTION

    Vlmget_ugrid reads the dimension information of data sets from ParVox unstructured grid data files. The handle ncid, which is obtained by a previous vlmopen_ugrid call, points to the file to read from. Vlmget_ugrid reads in the vertex table and cell table into the vlmeta_ugrid structure ugdata->vertex and ugdata->cell, respectively. The vertex table is a 2D array with dimension [number of vertices, 3]. Each entry in the array stores the (x, y, z) location of the vertex in the 3D space. The cell table is a 2D array with dimension [number of cells, 4]. Each cell is a tetrahedron with four corner vertices (i, j, k, l), where i, j, k, l indicates the index of the corner vertex to the vertex table. Dtype indicates the format the file is in, either VL_RAW or VL_NETCDF. VL_RAW is currently not supported.


SEE ALSO

    vlmopen_ugrid, vlmeta_ugrid, ParVox Tutorial: Input Data Format

DIAGNOSTICS

    Upon successful completion, the value of 0 is returned. Otherwise, a value of -1 is returned.
spacer
spacer spacer spacer
spacer
Privacy / Copyrights FAQ Contact JPL Sitemap
spacer
spacer spacer spacer
spacer
FIRST GOV   NASA Home Page This page, http://pat.jpl.nasa.gov/public/ParVox/API/vlmget_ugrid.html, is maintained by Peggy Li and was last modified Thursday, 24-Mar-2005 15:47:36 PST
spacer
spacer spacer spacer
spacer spacer spacer
JPL NASA Caltech