mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Fix normal orientation on Surface
This commit is contained in:
parent
35ce4c6704
commit
d0cb5b4eea
1 changed files with 1 additions and 1 deletions
|
@ -153,8 +153,8 @@ class Surface(Mobject):
|
||||||
|
|
||||||
points = self.get_points()
|
points = self.get_points()
|
||||||
crosses = cross(
|
crosses = cross(
|
||||||
points[step1] - points,
|
|
||||||
points[step2] - points,
|
points[step2] - points,
|
||||||
|
points[step1] - points,
|
||||||
)
|
)
|
||||||
self.data["normal"] = normalize_along_axis(crosses, 1)
|
self.data["normal"] = normalize_along_axis(crosses, 1)
|
||||||
return self.data["normal"]
|
return self.data["normal"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue