POV-Ray : Newsgroups : povray.general : reading uv vectors from file : Re: reading uv vectors from file Server Time
29 Jul 2024 06:26:18 EDT (-0400)
  Re: reading uv vectors from file  
From: Thomas de Groot
Date: 14 Dec 2012 03:02:41
Message: <50cadd21$1@news.povray.org>
On 13-12-2012 18:51, Le_Forgeron wrote:

> If I read the error message, I would conclude that at the start of the
> *second* iteration, UV1 & pal are still defined
>
> Try something like:
>
> #fopen Triangles1 "MyFile.inc" read
> #while (defined(Triangles1))
>    #read (Triangles1, T1, T2, T3, T4, T5, T6, UV1, UV2, UV3)
>    etc...
>    #undef UV1
>    #undef UV2
>    #undef UV3
> #undef T1
> #undef T2
> #undef T3
> #undef T4
> #undef T5
> #undef T6
> #end
>

Works! Thanks!

I think I understand /why/ this happened in this particular case. Within 
the #while block I do a #write of some of the vectors to another file. 
Before reading a new line I must first #undef them. Simple ;-)

Thomas


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.