|
|
Le 13/12/2012 10:34, Thomas de Groot nous fit lire :
> I have a problem.
> #fopen Triangles1 "MyFile.inc" read
> #while (defined(Triangles1))
> #read (Triangles1, T1, T2, T3, T4, T5, T6, UV1, UV2, UV3)
> etc...
> #end
>
> I get immediately a parse error at the end of the first line saying:
> "Parse error: Expected 'undeclared identifier', uv vector identifier
> found instead"
>
> How should I then declare the 2D vectors in order to be read correctly?
>
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
> Thanks!
>
> Thomas
Post a reply to this message
|
|