|
|
Hm, it seems I'm not making myself clear.
I'm not saving the data as input settings at the beginning
of the file.
In a seperate file, I'm saving all input settings, and then
compare these input settings to the ones formerly saved.
If they are the same, and if the file exists, it will just
be loaded.
This makes it possible to use the system for all kinds of
files, may it be meshes as pure vector-data, or the meshes
plus triangles themselves, or CSG etc etc.
--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde
> > I want to save the settings that have been
> > used to generate those files, and then compare these to the former
> > settings. In this manner, I can tell if the files should be the
> > same as the ones I'm requiring.
>
> In that case you have to modify your file format and add input settings at
> begining of file. First read header, compare with current input setting. If
> file not fits, you can regenerate the file. You could also concatenate input
> settings into filename and use file_exist function to find such file was
> already created.
>
> ABX
Post a reply to this message
|
|