home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
116
/
3DEMO.ZIP
/
FORMAT.TXT
< prev
next >
Wrap
Text File
|
1993-07-17
|
2KB
|
46 lines
Data Files...
I had to find a way to figure out how to read the data files so
that I could start making my own objects. The data files are written
as type real variables and stored as binary. CNVT.EXE converts the
values into integers and places them in a text file and vise versa.
If you want to play with the data files I reccomend you convert the
binary form to integer, edit the text file, and convert it back (much
easier than editing binary). I still have to make the program more
effeciant. If anyone has any ideas, comments, questions, or whatnot...
please send me E-Mail (cserve -> Ives 72707,1257)
or mail to
Ives B.C., P.O. Box 395, Wilmington, VT 05363.
note: If you create your own data files and go beond the limit of
maxpoints and/or maxlines (stated in the code), change the limits
and recompile. I'm not sure what effect this will have so try
it out.
*********************************************************
[For a Cube] [The integer text file]
*********************************************************
8 number of points
-100 100 -100 first data point x,y,z
100 100 -100 .
100 -100 -100 .
-100 -100 -100 .
-100 100 100 .
100 100 100 .
100 -100 100 .
-100 -100 100 .
12 number of lines
1 2 point A to point B
2 3 .
3 4 .
4 1 .
5 6 .
6 7 .
7 8 .
8 5 .
1 5 .
2 6 .
3 7 .
4 8 [end of file]
*********************************************************