home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 116 / 3DEMO.ZIP / FORMAT.TXT < prev    next >
Text File  |  1993-07-17  |  2KB  |  46 lines

  1. Data Files...
  2.  
  3. I had to find a way to figure out how to read the data files so 
  4. that I could start making my own objects.  The data files are written 
  5. as type real variables and stored as binary.  CNVT.EXE converts the 
  6. values into integers and places them in a text file and vise versa.  
  7. If you want to play with the data files I reccomend you convert the 
  8. binary form to integer, edit the text file, and convert it back (much 
  9. easier than editing binary).  I still have to make the program more
  10. effeciant.  If anyone has any ideas, comments, questions, or whatnot...
  11.         please send me E-Mail (cserve -> Ives 72707,1257) 
  12.                            or mail to
  13.         Ives B.C.,  P.O. Box 395,  Wilmington, VT 05363.
  14.  
  15. note:  If you create your own data files and go beond the limit of
  16.        maxpoints and/or maxlines (stated in the code), change the limits
  17.        and recompile.  I'm not sure what effect this will have so try
  18.        it out.
  19. *********************************************************
  20. [For a Cube]                    [The integer text file]
  21. *********************************************************
  22. 8                               number of points
  23. -100 100 -100                   first data point x,y,z
  24. 100 100 -100                    .
  25. 100 -100 -100                   .
  26. -100 -100 -100                  .
  27. -100 100 100                    .
  28. 100 100 100                     .
  29. 100 -100 100                    .
  30. -100 -100 100                   .
  31.  
  32. 12                              number of lines
  33. 1 2                             point A to point B
  34. 2 3                             .
  35. 3 4                             .
  36. 4 1                             .
  37. 5 6                             .
  38. 6 7                             .
  39. 7 8                             .
  40. 8 5                             .
  41. 1 5                             .
  42. 2 6                             .
  43. 3 7                             .
  44. 4 8                             [end of file]
  45. *********************************************************
  46.