def generate_normals(self): self.normals = list(generate_normals(self.vertices, self.triangles)) self.generate()
def generate_normals(self, smooth=True): self.normals = list( generate_normals(self.vertices, self.triangles, smooth)) self.generate() return self.normals