|
 |
"Warp" <war### [at] tag povray org> 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
|
 |