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