POV-Ray : Newsgroups : povray.unofficial.patches : There's something strange with the uv-coordinates code : Re: There's something strange with the uv-coordinates code Server Time
1 Sep 2024 18:18:24 EDT (-0400)
  Re: There's something strange with the uv-coordinates code  
From: Nathan Kopp
Date: 17 Jan 2001 23:35:51
Message: <3a6672a7$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote...
>
>         Parse_Three_UVCoords(UV1,UV2,UV3);
>         Triangles[number_of_triangles].UV1 =
Mesh_Hash_UV(&number_of_uvcoords, &max_uvcoords, &UVCoords,UV1);
>         Triangles[number_of_triangles].UV2 =
Mesh_Hash_UV(&number_of_uvcoords, &max_uvcoords, &UVCoords,UV2);
>         Triangles[number_of_triangles].UV3 =
Mesh_Hash_UV(&number_of_uvcoords, &max_uvcoords, &UVCoords,UV3);

I think there should be an "if" in there to check the value that is returned
from Parse_Three_UVCoords (it returns zero if nothing is parsed).  Either
that or the vectors should be initialized to zero before they are parsed.

-Nathan


Post a reply to this message

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