Fix normal orientation on Surface

This commit is contained in:
Grant Sanderson 2024-08-20 14:47:47 -05:00
parent 35ce4c6704
commit d0cb5b4eea

View file

@ -153,8 +153,8 @@ class Surface(Mobject):
points = self.get_points()
crosses = cross(
points[step1] - points,
points[step2] - points,
points[step1] - points,
)
self.data["normal"] = normalize_along_axis(crosses, 1)
return self.data["normal"]