mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
A class to automatically trace edges of an image
This commit is contained in:
@ -38,12 +38,16 @@ class Mobject(object):
|
||||
self.points,
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def init_points(self):
|
||||
for attr in self.get_array_attrs():
|
||||
setattr(self, attr, np.zeros((0, 3)))
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
def generate_points(self):
|
||||
#Typically implemented in subclass, unless purposefully left blank
|
||||
pass
|
||||
|
||||
def add_points(self, points, rgbs = None, color = None):
|
||||
"""
|
||||
@ -462,11 +466,6 @@ class Mobject(object):
|
||||
color.set_rgb(self.rgbs[0, :])
|
||||
return color
|
||||
|
||||
### Stuff subclasses should deal with ###
|
||||
def generate_points(self):
|
||||
#Typically implemented in subclass, unless purposefully left blank
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def align_data(mobject1, mobject2):
|
||||
count1 = len(mobject1.points)
|
||||
|
Reference in New Issue
Block a user