mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
Return unit normal as 1d vector
This commit is contained in:
@ -595,7 +595,7 @@ class VMobject(Mobject):
|
|||||||
|
|
||||||
def get_unit_normal(self, recompute=False):
|
def get_unit_normal(self, recompute=False):
|
||||||
if not recompute:
|
if not recompute:
|
||||||
return self.data["unit_normal"]
|
return self.data["unit_normal"][0]
|
||||||
|
|
||||||
if self.get_num_points() < 3:
|
if self.get_num_points() < 3:
|
||||||
return OUT
|
return OUT
|
||||||
|
Reference in New Issue
Block a user