VisionX V4 | VPOLTOADJ | VisionX V4 |
vpoltoadj - converts a polygon file to an adjacency file |
vpoltoadj if=infile of=outfile [-i] [-p] [-v] [-dbug] |
Vpoltoadj converts a 3D polygon file to a 3D adjacency file using a hash table. This program hashes adjacent vertices from the input polygon file into a direct-access table using a hash table for fast lookups and then outputs adjacencies to an adjaceny list file. The input polygon file is a list of 3D polygons with a VixX type of VX_V3D. Each 3D n-sided polygon is composed of n+1 3D vertices with the last vertex as a repetition of the first vertex to denote polygon closure. The output adjacency file is a list of an index, a 3D vertex, and an adjacency list with VisX types VX_VID, VX_V3D, and VX_ADJ, respectively. If -p option is on, the output file is virtual-polygon type which consists of vertex list and adjacency list. The output created with -p flag can be used with vvptovtk. |
if= |
polygon file with each polygon of the format: VX_V3D [size=3(n+1)] polygon where n is the number sides of the polygon |
||
of= |
adjacency list file with the file format: VX_VID (0xDA) [size=1] vertex index VX_V3D [size=3] vertex VX_ADJ (0XD7) [size=n] adjacency list where n is the number of adjacencies |
||
-i |
output polygon rather than adjacency list. |
||
-p |
inhibits packing of result |
||
-v |
verbose mode prints number of polygons, n-sided polygons, vertices, and adjacency information |
||
-dbug |
prints hash table and direct-access table |
B.C.Lee, 1999, H.Bae, J.Lee, 2006 |
vvertopol(1), vvertoadj(1), vpoltover(1), vadjtover(1), vadjtopol(1), vvptovtk(1) |