"Kima" <nomail@nomail> wrote:
> Since a mesh is made of thousands or millions of triangles, it is tidy to keep
> the data in separate files and include them in the .pov file whenever necessary.
> I mean something like
> #declare Vertices = read from vertices.txt;
> #declare Faces = read from faces.txt;
> fopen directive of POV-Ray reads the file into variables,
> #read (FILE_HANDLE_IDENTIFIER,MyString,MyFloat,MyVect)
> I don't know if it works as vertices and faces are thousands/millions of
storing vertex and face coords/points in separate files etc should/would work.
however, have you considered only doing "the work" once? that is, create an
..inc file from your '*.txt' files instead and simply use that from then on?
have attached an example.
Post a reply to this message
Download 'cube2_mesh.inc.txt' (1 KB)