Divide by epsilon prior to normalizing

This commit is contained in:
Grant Sanderson
2023-01-30 20:51:04 -08:00
parent a58327657c
commit 5ff44f5850

View File

@ -96,8 +96,8 @@ class Surface(Mobject):
] ]
self.set_points(points) self.set_points(points)
self.data["normal"] = normalize_along_axis(cross( self.data["normal"] = normalize_along_axis(cross(
du_points - points, (du_points - points) / self.epsilon,
dv_points - points, (dv_points - points) / self.epsilon,
), 1) ), 1)
def apply_points_function(self, *args, **kwargs): def apply_points_function(self, *args, **kwargs):