POLYMESH STRUCTURE 2/94 Here is a sample det file,ascii version, and the associated values in the polymesh data structure after reading in the object. The object is a pyramid. The ascii version was created by the command asc edge/samples/pyramid2.det The asc command without the -a option adds explanatory words like Point, Poly, etc. The binary version of this data object is ... edge/samples/pyramid.det. :::: edge/samples/pyramid.det :::: Detail file (det) 5 points 5 polygons Point 1: 0 0.5 0 Point 2: 0.5 -0.5 0.5 Point 3: -0.5 -0.5 0.5 Point 4: 0.5 -0.5 -0.5 Point 5: -0.5 -0.5 -0.5 Poly 1: 3 verts 1 2 3 Poly 2: 3 verts 1 4 2 Poly 3: 4 verts 2 4 5 3 Poly 4: 3 verts 1 5 4 Poly 5: 3 verts 1 3 5 ******************** polymesh structure values ******************** num_pnts : 5 num_polys : 5 pnts: (an array containing the actual pnts of the object) [0] 0.0 0.5 0.0 [1] 0.5 -0.5 0.5 [2] -0.5 -0.5 0.5 [4] 0.5 -0.5 -0.5 [5] -0.5 -0.5 -0.5 size_polys : ( an array containing the number of points in each poly) [0] 3 [1] 3 [2] 4 [3] 3 [4] 3 indx_polys : ( an array containing for each polygon indices into the pnts array of the points that make up the polygon (in order)) __ __ / [0] 0 / [10] 0 P1 < [1] 1 P4 < [11] 4 \__ [2] 2 \__ [12] 3 __ __ / [3] 0 / [13] 0 P2 < [4] 3 P5 < [14] 2 \__ [5] 1 \__ [15] 4 __ / [6] 1 P3 / [7] 3 \ [8] 4 \__ [9] 2 poly_ptr : (an array containg for each polygon the entry number in the indx_polys array where the entries for that polygon begin) [0] 0 [1] 3 [2] 6 [3] 10 [4] 13 This in combination with the sample program should help you understand how the polymesh structure works.