A community-maintained Python framework for creating mathematical animations.
Better behavior for when lines have shade_in_3d turned on
Grant Sandersondb6d25280b5f
diff --git a/mobject/three_d_utils.py b/mobject/three_d_utils.pyindex 1c4e79143..b0649f6b3 100644--- a/mobject/three_d_utils.py+++ b/mobject/three_d_utils.py@@ -35,7 +35,7 @@ def get_3d_vmob_end_corner(vmob):def get_3d_vmob_unit_normal(vmob, point_index):n_points = vmob.get_num_points()- if vmob.get_num_points() == 0:+ if len(vmob.get_anchors()) <= 2:return np.array(UP)i = point_indexim1 = i - 1 if i > 0 else (n_points - 2)