> /* now we have vertex normals + triangle normals */
> m->Data->Number_Of_Normals += triangles;
Of course this variable must be assigned first to:
m->Data->Number_Of_Normals = normals;
and others as well:
m->Data->Number_Of_Vertices = vertices;
m->Data->Number_Of_Triangles = triangles;
BTW, I didn't checked again, but I guess the code I provided
is almost the same than that of MegaPOV's mesh2. I don't know who was
first (mine was in march 1998) but I don't care about competition ;-)
Also my tiny-winny patch is simply nothing compared to MegaPOV and its
derivatives (including the next POV-Ray 3.5).
*** Nicolas Calimet
*** http://pov4grasp.free.fr
Post a reply to this message
|