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:
|
|
|
scalar representing the integer identifier used to name the output file |
|
|
|
array of dimensions |
|
|
|
array of length \(\texttt{ns}\) storing the number of vertices per face boundary |
|
|
|
maximum vertex index in the connectivity list |
|
|
|
total number of face boundaries of the polyhedron |
|
|
|
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\).