mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Better behavior for when lines have shade_in_3d turned on
This commit is contained in:
@ -35,7 +35,7 @@ def get_3d_vmob_end_corner(vmob):
|
|||||||
|
|
||||||
def get_3d_vmob_unit_normal(vmob, point_index):
|
def get_3d_vmob_unit_normal(vmob, point_index):
|
||||||
n_points = vmob.get_num_points()
|
n_points = vmob.get_num_points()
|
||||||
if vmob.get_num_points() == 0:
|
if len(vmob.get_anchors()) <= 2:
|
||||||
return np.array(UP)
|
return np.array(UP)
|
||||||
i = point_index
|
i = point_index
|
||||||
im1 = i - 1 if i > 0 else (n_points - 2)
|
im1 = i - 1 if i > 0 else (n_points - 2)
|
||||||
|
Reference in New Issue
Block a user