if not np.all(self.get_points() == old_points):
ValueError: operands could not be broadcast together with shapes (24,3) (0,3)
Code and Error
Code:
from manimlib import *
class P(Scene):
def construct(self):
circle = Circle()
circle.set_fill(BLUE, opacity=0.5)
circle.set_stroke(BLUE_E, width=4)
self.add(circle)
if __name__ == "__main__":
f_video = 0
if f_video:
os.system("manimgl {} P -o --file_name {}".format(__file__, "Output"))
else:
os.system("manimgl {} ".format(__file__))
Error:
manimlib\mobject\types\vectorized_mobject.py
if not np.all(self.get_points() == old_points):
ValueError: operands could not be broadcast together with shapes (24,3) (0,3)
Environment
OS System: Windows 11
manim version: 1.6.1
python version:3.10
Detais
Pic
Code
# manimlib\mobject\types\vectorized_mobject.py at 963 line
def triggers_refreshed_triangulation(func):
@wraps(func)
def wrapper(self, *args, **kwargs):
old_points = self.get_points().copy()
func(self, *args, **kwargs)
if not np.all(self.get_points() == old_points):
self.refresh_unit_normal()
self.refresh_triangulation()
return wrapper
Describe the error
Code and Error
Code:
Error:
Environment
OS System: Windows 11 manim version: 1.6.1 python version:3.10
Detais
Pic
Code