Subversion Repositories gelsvn

Rev

Rev 295 | Rev 371 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 295 Rev 334
Line 69... Line 69...
69
		// Normalize all normals
69
		// Normalize all normals
70
    for(i=0;i<NV; ++i)
70
    for(i=0;i<NV; ++i)
71
			{
71
			{
72
				float l_vert_rw = sqr_length(normals.vertex_rw(i));
72
				float l_vert_rw = sqr_length(normals.vertex_rw(i));
73
				if(l_vert_rw > 0.0f)
73
				if(l_vert_rw > 0.0f)
74
					normals.vertex_rw(i) /= l_vert_rw;
74
					normals.vertex_rw(i) /= sqrt(l_vert_rw);
75
			}
75
			}
76
	}
76
	}
77
 
77
 
78
 
78
 
79
  void TriMesh::get_bbox(CGLA::Vec3f& p0, CGLA::Vec3f& p7) const
79
  void TriMesh::get_bbox(CGLA::Vec3f& p0, CGLA::Vec3f& p7) const