ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/txtprt_import.C
(Generate patch)

Comparing libgender/txtprt_import.C (file contents):
Revision 1.13 by root, Sat Oct 16 23:23:21 2004 UTC vs.
Revision 1.14 by root, Sat Oct 30 15:59:20 2004 UTC

154 match_nl (); 154 match_nl ();
155 verts[(int) c].t = tex2 (1 - u, 1 - v); 155 verts[(int) c].t = tex2 (1 - u, 1 - v);
156 156
157 if (!smooth_fl) 157 if (!smooth_fl)
158 { 158 {
159 point ap = verts[(int) a].p; 159 point ap = verts[(int) a].v;
160 point bp = verts[(int) b].p; 160 point bp = verts[(int) b].v;
161 point cp = verts[(int) c].p; 161 point cp = verts[(int) c].v;
162 vec3 nv = normalize (cross (vec3 (cp.x - bp.x, cp.y - bp.y, cp.z - bp.z), 162 vec3 nv = normalize (cross (vec3 (cp.x - bp.x, cp.y - bp.y, cp.z - bp.z),
163 vec3 (ap.x - bp.x, ap.y - bp.y, ap.z - bp.z))); 163 vec3 (ap.x - bp.x, ap.y - bp.y, ap.z - bp.z)));
164 164
165 verts[(int) a].n = nv; 165 verts[(int) a].n = nv;
166 verts[(int) b].n = nv; 166 verts[(int) b].n = nv;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines