From b353c4f21c26bb844fef453b0cb40fa7ce8751d3 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 30 Jan 2021 17:51:14 -0800 Subject: [PATCH] Change comment --- manimlib/mobject/svg/svg_mobject.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manimlib/mobject/svg/svg_mobject.py b/manimlib/mobject/svg/svg_mobject.py index 5a4a54d4..76f2ab33 100644 --- a/manimlib/mobject/svg/svg_mobject.py +++ b/manimlib/mobject/svg/svg_mobject.py @@ -354,8 +354,10 @@ class VMobjectFromSVGPathstring(VMobject): super().__init__(**kwargs) def init_points(self): - # TODO, move this caching operation - # higher up to Mobject somehow. + # After a given svg_path has been converted into points, the result + # will be saved to a file, as will the trianulgation of the path, + # so that future calls for the same path don't need to retrace + # the same computation. hasher = hashlib.sha256(self.path_string.encode()) path_hash = hasher.hexdigest()[:16] points_filepath = os.path.join(get_mobject_data_dir(), f"{path_hash}_points.npy")