15 February 2007 05:28:22 AM STLA_IO_PRB: C++ version Test the routines in the STLA_IO library. TEST01 STLA_CHECK makes some simple checks on a file. The file "cube.stla" seems to be a legal ASCII STL file. TEST02 STLA_SIZE determines the size of various objects in an ASCII STL file. Sizes for STLA object "cube.stla". Solids = 1 Nodes (may be repeated) = 36 Faces (triangular only) = 12 The index offset value = 0 Number of lines of text = 86 TEST03 STLA_READ reads an object in an ASCII STL file. Sizes for STLA object "cube.stla". Solids = 1 Nodes (may be repeated) = 36 Faces (triangular only) = 12 The index offset value = 0 Number of lines of text = 86 Face Nodes 0 0 1 2 1 3 4 5 2 6 7 8 3 9 10 11 4 12 13 14 5 15 16 17 6 18 19 20 7 21 22 23 8 24 25 26 9 27 28 29 10 30 31 32 11 33 34 35 Face Normal Vectors 0 0 0 -1 1 0 0 -1 2 -1 0 0 3 -1 0 0 4 0 1 0 5 0 1 0 6 1 0 0 7 1 0 0 8 0 -1 0 9 0 -1 0 10 0 0 1 11 0 0 1 Node Coordinates 0 0 0 0 1 1 1 0 2 1 0 0 3 0 0 0 4 0 1 0 5 1 1 0 6 0 0 0 7 0 1 1 8 0 1 0 9 0 0 0 10 0 0 1 11 0 1 1 12 0 1 0 13 1 1 1 14 1 1 0 15 0 1 0 16 0 1 1 17 1 1 1 18 1 0 0 19 1 1 0 20 1 1 1 21 1 0 0 22 1 1 1 23 1 0 1 24 0 0 0 25 1 0 0 26 1 0 1 27 0 0 0 28 1 0 1 29 0 0 1 30 0 0 1 31 1 0 1 32 1 1 1 33 0 0 1 34 1 1 1 35 0 1 1 TEST04 STLA_WRITE writes an ASCII STL file. Graphics data was written to the STLA file "cube_new.stla". TEST05 STLA_FACE_NORMAL_COMPUTE computes the face normal vectors for an STLA file. We have an STLA solid, and its exact normals. We now call STLA_NFACE_NORMAL_COMPUTE to recompute the normals. We print out the maximum error, defined as |1 - dot ( n1, n2 )| where n1 and n2 are the exact and computed normals. Maximum error = 0 STLA_IO_PRB Normal end of execution. 15 February 2007 05:28:22 AM