3.20 polout3d – VTK export for polyhedra

The polout3d routine exports the geometry and topological data of a polyhedron to an external file in VTK (visualization toolkit) format [5].

The generated files can be visualized using post-processing software such as ParaView [3] [1]. The filename is automatically generated as pol$ifile.vtk, where $ifile$ is the integer identifier provided by the user.

Fortran:

call polout3d(ifile,ipv,nipv,ntp,nts,vertp)

\(\,\)

C:

polout3d(&ifile,ipv,nipv,&ntp,&nts,vertp);

Python:

voft.polout3d(ifile,ipv,nipv,ntp,nts,vertp)

Arguments:

ifile

IN

I_P

scalar representing the integer identifier used to name the output file

ipv

IN

I_P

array of dimensions (ns,nv) storing the vertex indices defining each face boundary of the polyhedron

nipv

IN

I_P

array of length \(\texttt{ns}\) storing the number of vertices per face boundary

ntp

IN

I_P

maximum vertex index in the connectivity list

nts

IN

I_P

total number of face boundaries of the polyhedron

vertp

IN

W_P

array of dimensions \(({nv},3)\) storing the \(x,y,z\)-coordinates of each vertex

Note: The file is written to the current working directory. Its name consists of the prefix pol, the identifier ifile formatted as five digits with leading zeros, and the extension .vtk. For example, \(\texttt{ifile} = 1\) produces pol00001.vtk. Use identifiers in the range \(0 \le \texttt{ifile} \le 99999\).