POV-Ray : Newsgroups : povray.programming : Why there are no mesh creation functions? : Re: Why there are no mesh creation functions? Server Time
28 Jul 2024 14:29:14 EDT (-0400)
  Re: Why there are no mesh creation functions?  
From: Nicolas Calimet
Date: 8 Dec 2000 15:28:17
Message: <3A315555.F8E9AFF3@free.fr>
> /* 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

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