def glr_normal(self, n): """ """ ## just rotate the normal R = self.matrix[:3, :3] nr = numpy.dot(R, n) if self.normalize == True: self.normal = AtomMath.normalize(nr) else: self.normal = nr
def glr_normal3(self, x, y, z): """ """ ## just rotate the normal R = self.matrix[:3, :3] n = numpy.array([x, y, z], float) nr = numpy.dot(R, n) if self.normalize == True: self.normal = AtomMath.normalize(nr) else: self.normal = nr