common/objects.py
def recalculate_normals(self):
        """Recalculates the normals
        according to the surface normals
        of each connected triangle.
        """
        normals = []

        for index in xrange(len(self.vertices)):
            vertex = self.vertices[index]
            norms = self._calculate_normals(index)

            average = Vector3.zero
            for normal in norms:
                average += normal
            if average.magnitude > 0:
                normals.append(average.normalized)
            else:
                normals.append(self.normals[index])

        self.normals = tuple(normals)
Recalculates the normals
        according to the surface normals
        of each connected triangle.
        
Recalculates the normals
according to the surface normals
of each connected triangle.
Recalculates the normals according to the surface normals of each connected triangle .
def recalculate_normals(self):
        normals = []
        for index in xrange(len(self.vertices)):
            vertex = self.vertices[index]
            norms = self._calculate_normals(index)
            average = Vector3.zero
            for normal in norms:
                average += normal
            if average.magnitude > 0:
                normals.append(average.normalized)
            else:
                normals.append(self.normals[index])
        self.normals = tuple(normals)
def recalculate_normals ( self ) : normals = [ ] for index in xrange ( len ( self . vertices ) ) : vertex = self . vertices [ index ] norms = self . _calculate_normals ( index ) average = Vector3 . zero for normal in norms : average += normal if average . magnitude > 0 : normals . append ( average . normalized ) else : normals . append ( self . normals [ index ] ) self . normals = tuple ( normals )
Recalculates the normals
according to the surface normals
of each connected triangle.
Recalculates the normals according to the surface normals of each connected triangle .
"""Recalculates the normals
        according to the surface normals
        of each connected triangle.
        """
self